fixed erb extension error, and api