pre UI cleaning