added support for private libraries