add compress switch (used in development mode)