clean up main, ready for some slicing