remove unrecognised options