init copied from arcsub.cpp