add logging in cotsoc