some security checks