handle ERB properly