made a shared library and fixed priorities
made a shared library and fixed priorities