move latch to providers