fix for json printer
moved printer creation to config, added config support for printer