check context instead of type to detect sections