move server stuff into init.lua