use string formatting instead of hacky cpy/cat