compile with -g
added longoptions