add entry_id and exit_id for cfg