port all to new get_dbus function, and fix some warnings