changed require to use. moved constants to server.pm