adding back try statement in resources