add sourceUrl optional mapping function

fix sourceUrlMapping

fix sourceUrlMapping