added options to getopt and less output