detect in footer instead of compressed