fix version number
use hash to replace switch
fix cascading bug
set version 0.1.2