cleanup unnecessary options