added support for library