organize task queue