fix bug where it would break if user kept typing past the end fix bug of it breaking if user didnt have permissions to use subcommand
previous bug fix was not complete, this now works
permissions get escaped when parsing the data, make sure that it checks against unescaped permissions
minor bug fix from a typo in the script