added stdout logging