clean up conditional main