made jvm-commons safer, and added a redeploy test
improve the redeploy test