get rid of module level variables
package up server into an object