change context creation params to struct