added luaproc library + minor changes