refactored resources package for cleaner interface