First setup loading cms via middleware