added sourcePath tracking to object constructor