add some exeption to vm add class
remove debug code