fix some bug and add excel api