should there be a exception thrown in case $format was provided by a caller, because it is never used internally?