adds task scheduling functionality