changed how the trailing param is matched