user lib fixes