a callback can now be set in case you want to redirect the output