added support for lib