adding error conversion client-server funcionality