made it command line usable