init source and sample data