librarize (a very poor mans version, but hey...)