add lib for client side