add temp logic for library