added simple logging mechanism