update LIB routines