-added simple logging