adding units to libraries