build tasks based on scenarios