attach context and type to domain