fixed second use of fileAppend to use config