dynamically set first source as default