cleaning up server, adding constants, removing windows crap