cleanup. main lives in the template