fixes for erb templates