update the user lib for apis