refactor command line parsing
add scopt arg parsing