added gzip to compress file
added resident params