updated lib to be compliant with server