 
 		serverAfter: (opts) ->
 			config = @config
+			docpad = @docpad
 			port = config.port
 			docpad.log('info','Starting TinyLiveReload')
 

			@lrServer.changed({body:{files:files}});
			docpad.log('info','changed files are sent')

			@

		generateAfter: (opts) ->
			return @ if !@lrServer
			docpad = @docpad
			files = []
			collection = docpad.getDatabase().findAll({
				mtime: {
