refactoring chasm-init and webjump
more refactoring of chasm init