add logging for production