split resourcemanager to different files