added smarter erb tags