move to erb templates