remove dirty code
add version and clean some dirty code