cleanup
diff --git a/README.md b/README.md
deleted file mode 100644
index 6269931..0000000
--- a/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-## Sample pillar
-
-    libvirt:
-      server:
-        enabled: true
-
-## Resources
-* https://github.com/bechtoldt/saltstack-libvirt-formula
\ No newline at end of file
diff --git a/README.rst b/README.rst
new file mode 100644
index 0000000..3263129
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,81 @@
+
+=======
+Libvirt
+=======
+
+Sample pillars
+==============
+
+simple libvirt server
+
+
+.. code-block:: yaml
+
+    libvirt:
+      server:
+        enabled: true
+
+.. code-block:: yaml
+
+    libvirt:
+      server:
+        enabled: true
+        network:
+          default:
+            ensure: absent #present, running, stopped, absent
+          mydefault:
+            xml: |
+              <network>
+                <name>mydefault</name>
+                <bridge name="virbr0"/>
+                <forward/>
+                <ip address="192.168.122.1" netmask="255.255.255.0">
+                  <dhcp>
+                    <range start="192.168.122.2" end="192.168.122.254"/>
+                  </dhcp>
+                </ip>
+              </network>
+          ovs-net:
+            autostart: False
+            xml: |
+              <network>
+                <name>ovs-net</name>
+                <forward mode='bridge'/>
+                <bridge name='ovsbr0'/>
+                <virtualport type='openvswitch'>
+                  <parameters interfaceid='09b11c53-8b5c-4eeb-8f00-d84eaa0aaa4f'/>
+                </virtualport>
+              </network>
+
+.. code-block:: yaml
+
+    libvirt:
+      server:
+        enabled: true
+        pool:
+          virtimages:
+            type: dir
+            path: /var/lib/libvirt/images
+            xml: |
+              <pool type="dir">
+                <name>virtimages</name>
+                  <target>
+                    <path>/var/lib/libvirt/images</path>
+                  </target>
+              </pool>
+          virtimages2:
+            ensure: absent
+            type: dir
+            path: /var/lib/libvirt/images2
+            xml: |
+              <pool type="dir">
+                <name>virtimages2</name>
+                  <target>
+                    <path>/var/lib/libvirt/images2</path>
+                  </target>
+              </pool>
+
+Read more
+=========
+
+* https://github.com/bechtoldt/saltstack-libvirt-formula
\ No newline at end of file
diff --git a/libvirt/server/init.sls b/libvirt/server/init.sls
new file mode 100644
index 0000000..8df6a42
--- /dev/null
+++ b/libvirt/server/init.sls
@@ -0,0 +1,6 @@
+
+include:
+- libvirt.server.service
+{% if pillar.libvirt.server.network != {}  %}
+- libvirt.server.network
+{% endif %}
\ No newline at end of file
diff --git a/libvirt/server/network.sls b/libvirt/server/network.sls
new file mode 100644
index 0000000..900a836
--- /dev/null
+++ b/libvirt/server/network.sls
@@ -0,0 +1,12 @@
+{% from "libvirt/map.jinja" import server with context %}
+{%- if server.enabled %}
+
+
+if pillar.libvirt.server.netcfg
+
+{%- if server.netcfg is defined %}
+
+/etc/libvirt/qemu/networks/default.xml:
+  file.managed.absent:
+
+{%- endif %}
diff --git a/libvirt/server/service.sls b/libvirt/server/service.sls
new file mode 100644
index 0000000..fc4f3c8
--- /dev/null
+++ b/libvirt/server/service.sls
@@ -0,0 +1,49 @@
+{% from "libvirt/map.jinja" import server with context %}
+{%- if server.enabled %}
+
+libvirt_packages:
+  pkg.installed:
+  - names: {{ server.pkgs }}
+
+libvirt_config:
+  file.managed:
+  - name: {{ server.config }}
+  - source: salt://libvirt/files/libvirtd.conf.{{ grains.os_family }}
+  - template: jinja
+  - require:
+    - pkg: libvirt_packages
+
+{%- if grains.os_family == 'RedHat' %}
+
+libvirt_sysconfig:
+  file.managed:
+  - name: /etc/sysconfig/libvirtd
+  - contents: 'LIBVIRTD_ARGS="--listen"'
+  - require:
+    - pkg: libvirt_packages
+  - watch_in:
+    - service: libvirt_service
+
+{%- endif %}
+
+{%- if grains.os_family == 'Debian' %}
+
+/etc/default/libvirt-bin:
+  file.managed:
+  - source: salt://libvirt/files/libvirt-bin
+  - require:
+    - pkg: libvirt_packages
+  - watch_in:
+    - service: libvirt_service
+
+{%- endif %}
+
+libvirt_service:
+  service.running:
+  - name: {{ server.service }}
+  - enable: true
+  - reload: true
+  - watch:
+    - file: libvirt_config
+
+{%- endif %}
\ No newline at end of file