functions route fix