changed how structure vs flow is detected