compress data and use config file