integrating getopts for runtime options