add lib for user and pair function