add initialized flag to call ATS_begin() multipe