refactored resources.h