simplify
also allow downsample file to come from server