clean up top-level