diff --git a/Text/Search/Sphinx/Types.hs b/Text/Search/Sphinx/Types.hs
--- a/Text/Search/Sphinx/Types.hs
+++ b/Text/Search/Sphinx/Types.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
 module Text.Search.Sphinx.Types (
     module Text.Search.Sphinx.Types
   , ByteString ) where
@@ -23,9 +24,15 @@
                 | VcKeywords
                 deriving (Show)
 
--- | Important! only 1.1 compatible
+#ifdef ONE_ONE_BETA
+-- | Important! only 1.1 compatible, not 9.9.x
 verCommand VcSearch   = 0x117
 verCommand VcExcerpt  = 0x102
+#else
+-- | Important! 2.0 compatible
+verCommand VcSearch   = 0x118
+verCommand VcExcerpt  = 0x103
+#endif
 verCommand VcUpdate   = 0x101
 verCommand VcKeywords = 0x100
 
diff --git a/sphinx.cabal b/sphinx.cabal
--- a/sphinx.cabal
+++ b/sphinx.cabal
@@ -1,5 +1,5 @@
 Name:            sphinx
-Version:         0.4.0.5
+Version:         0.5.0
 Synopsis:        Haskell bindings to the Sphinx full-text searching deamon.
 Description:     Haskell bindings to the Sphinx full-text searching deamon. Compatible with sphinx version 1.1
 Category:        Text, Search, Database
@@ -9,16 +9,27 @@
 Maintainer:      Greg Weber <greg@gregweber.info>
 homepage:        https://github.com/gregwebs/haskell-sphinx-client
 
-Exposed-Modules: Text.Search.Sphinx,
-                 Text.Search.Sphinx.Types,
-                 Text.Search.Sphinx.Configuration, Text.Search.Sphinx.ExcerptConfiguration, 
-                 Text.Search.Sphinx.Indexable
+cabal-version:   >= 1.2
+Build-Type:      Simple
 
-Other-Modules:   Text.Search.Sphinx.Get, Text.Search.Sphinx.Put
+Flag version-1-1-beta
+  Description: By default this library is compatible with version 1.10 beta of sphinx
+               you could try it without the flag on version 2, but should use this flag.
+  Default: False
 
-Build-Type:      Simple
-Build-Depends:   base >= 4 && < 5,
-                 binary, data-binary-ieee754,
-                 bytestring, network,
-                 xml, utf8-string >= 0.3
+library
+  Exposed-Modules: Text.Search.Sphinx,
+                   Text.Search.Sphinx.Types,
+                   Text.Search.Sphinx.Configuration, Text.Search.Sphinx.ExcerptConfiguration, 
+                   Text.Search.Sphinx.Indexable
 
+  Other-Modules:   Text.Search.Sphinx.Get, Text.Search.Sphinx.Put
+
+
+  Build-Depends:   base >= 4 && < 5,
+                   binary, data-binary-ieee754,
+                   bytestring, network,
+                   xml, utf8-string >= 0.3
+
+  if flag(version-1-1-beta)
+    cpp-options:   -DONE_ONE_BETA
