replace http with service