adding stdout logging