fixed static library a bit