add service error code
work in progress