added error handling to compression whitelist