moving tasks to tasks.js