made string formatting backwards compatible