unused code
unused imports
Permissions as List, more JSON parsing

!TESTED DO NOT SYNC THIS SHITE