minor tweaks to run server code