add save output to file, change directory with profiles