update build_tasks method