first clean up offline controller