start of moving to splitting state from config parsing