separate routes into dir and variant