update returns and cleanup of tasks
protect hashes