change program into shared library