fixes #3 - incorrect format sent to generate_output