added compression to ClientServerLib