pass defaultPrinter fn directly