fixes to erb template, hopefully