fix cfg init such that nest states can only emit pairs