made setup and capturing stdout