move tasks-- to callback in async