script to check validity of resources