Add get_ctx() for access_info and flow