fix bugs, release 1.0