fixed getopt now can start on server code soon