add serial and parallel tasks