added code to populate the Reference libraries