changes to permission funcs, getting types from fqins