added simple example
waiting for download to finished before issuing callback