update for library usage