cleaned up proxy.lua