added event style callbacks to allow printing of stdout and stderr as it is received.