from old librarica, tidied.