start of work to make download wait spinner work