some more security checks