added cmd args, fixed issue