protect resources