added a logging model