fix version name
fix undeclared var, add a call back