check context; flatten connection info