cleaning for command line execution