fix code to account for movement of resources to their own folder