cleanup main dox