added logging, log file is server.log