modified the MySecurityManager