modifying get_info* to stdout for both file and out, also treating file exists