added task addition & small other functions