remove all references of SourceFile where possible and replace with pageSource