worked out how to make a dynamic link lib out of it