remove external submodule ref and modify casper for TW use