flip resource and string in fwrite for query audit