cleanout implementation of permissions to use advanced gson features, compiles once again!