loitering code split to subfunctions
acs file split to parts