moved the "done" so it is properly async