fixed bugs added with cmd_args