add latch_config struct