add error.log log and communicate with server