simplify erb vars, need acceptance test