using dynamic library

it was failing on linux