making library to be shared