added static link, needs some debugging