add getopt to enable some simple configuration