added support for command line playing