bug fixes in ddss download script