works with command line