detect compression extensions, and improve movement handling