some cleanup in interface main