fixed reading-from-file macro