fixed issues with local testing and the es resource