ret_num_platforms=1 TODO: check