fixed log implementation
Added log entries