add checkversion --- not sure if it can work