clean up main init