remove a bunch of commented code and fix resourcePaths