addinging task + cleanup
implementing scheduler