update user code from library