lua: make print function that buffers the input
lua: inject config into lua env