setup command line and gui