added commandline version