fixed main reference to lib