added http substitution