added offset to context directive