cleaned up command line converter