add logging in production