Thanks! I just looked back at the code I suggested last night and can't really figure out what I was thinking, since out_prefix() strips the path information and afni_name.new(prefix) strips the prefix, so nothing is left of the original afni_name instance. So that might not be the best way to do that...