added simple logging tool (no more stdout)