removing resource_permissions require and minor fix

SSIA

Also small improvement in the error handling for manifest import