add new features to check permissions