remove remaining uses of ERB internally