added option parsing in server.c