removed fd from get_chunk_ids