checks program into dbus so that it can't be run more than once simultaniously
deletes check for operating system to determine write mode