server.lua from scratch pug mod