some more protection checks