logging functionality is added