added a simple logging solution