sort dispatch locations
remember last layer, or try