added relocate function and fine tuning with dbus script