try using stdio for puts so we can stub it in a test