init test done. some bug fix