from looking at this code - we should make num_result_dir a property of the result api call. (it makes sense to have all the attributes of the result returned by that call)