adding commandline support