change downloadstate from int to string