model: add libraries as elements