add context for adapter
merge with ares