add domain module to handle the error in production env