add SecurityManager support