added task scheduler