added:
- get_index_list
- changes clean_server_response
- changed is_valid_index to use get_index_list