results write to directory