added encoding for error handle