updated simulation download function also