split off library stub