i know you didn't write this, but this bit should really be part of the str-template