removed state. Added ioref + implemented dbus service functions