added simple logging