make it work as a command