add if-else helpers for source list.