changed to static linking