converted multi-context with-statements to nested (2.6 compatibility)