fix examples and support other sources