remove unneeded options