hash iteration and default route fix