implement url param replacement