services and factories common