insert events into download process
pep8