added prerequisite libraries and support for data in multiple dirs