add support for libraries