Make foldback bus match foldback sends namewise
[ardour.git] / libs / surfaces / osc / osc.cc
index 41d1210281f69810df6922d828a4c11c8d8e71b9..08b8fb9c185ea31a48282eed2c586f74565f1c95 100644 (file)
@@ -29,6 +29,7 @@
 #include <glibmm.h>
 
 #include "pbd/control_math.h"
+#include "pbd/controllable.h"
 #include <pbd/convert.h>
 #include <pbd/pthread_utils.h>
 #include <pbd/file_utils.h>
@@ -37,6 +38,7 @@
 #include "ardour/amp.h"
 #include "ardour/session.h"
 #include "ardour/route.h"
+#include "ardour/route_group.h"
 #include "ardour/audio_track.h"
 #include "ardour/midi_track.h"
 #include "ardour/vca.h"
@@ -44,6 +46,8 @@
 #include "ardour/dB.h"
 #include "ardour/filesystem_paths.h"
 #include "ardour/panner.h"
+#include "ardour/panner_shell.h"
+#include "ardour/pannable.h"
 #include "ardour/plugin.h"
 #include "ardour/plugin_insert.h"
 #include "ardour/presentation_info.h"
@@ -98,7 +102,7 @@ OSC::OSC (Session& s, uint32_t port)
        , address_only (true)
        , remote_port ("8000")
        , default_banksize (0)
-       , default_strip (159)
+       , default_strip (31)
        , default_feedback (0)
        , default_gainmode (0)
        , default_send_size (0)
@@ -411,234 +415,247 @@ OSC::register_callbacks()
                // Some controls have optional "f" for feedback or touchosc
                // http://hexler.net/docs/touchosc-controls-reference
 
-               REGISTER_CALLBACK (serv, "/refresh", "", refresh_surface);
-               REGISTER_CALLBACK (serv, "/refresh", "f", refresh_surface);
-               REGISTER_CALLBACK (serv, "/strip/list", "", routes_list);
-               REGISTER_CALLBACK (serv, "/strip/list", "f", routes_list);
-               REGISTER_CALLBACK (serv, "/strip/custom/mode", "f", custom_mode);
-               REGISTER_CALLBACK (serv, "/strip/custom/clear", "f", custom_clear);
-               REGISTER_CALLBACK (serv, "/strip/custom/clear", "", custom_clear);
-               REGISTER_CALLBACK (serv, "/surface/list", "", surface_list);
-               REGISTER_CALLBACK (serv, "/surface/list", "f", surface_list);
-               REGISTER_CALLBACK (serv, "/add_marker", "", add_marker);
-               REGISTER_CALLBACK (serv, "/add_marker", "f", add_marker);
-               REGISTER_CALLBACK (serv, "/access_action", "s", access_action);
-               REGISTER_CALLBACK (serv, "/loop_toggle", "", loop_toggle);
-               REGISTER_CALLBACK (serv, "/loop_toggle", "f", loop_toggle);
-               REGISTER_CALLBACK (serv, "/loop_location", "ii", loop_location);
-               REGISTER_CALLBACK (serv, "/goto_start", "", goto_start);
-               REGISTER_CALLBACK (serv, "/goto_start", "f", goto_start);
-               REGISTER_CALLBACK (serv, "/goto_end", "", goto_end);
-               REGISTER_CALLBACK (serv, "/goto_end", "f", goto_end);
-               REGISTER_CALLBACK (serv, "/scrub", "f", scrub);
-               REGISTER_CALLBACK (serv, "/jog", "f", jog);
-               REGISTER_CALLBACK (serv, "/jog/mode", "f", jog_mode);
-               REGISTER_CALLBACK (serv, "/rewind", "", rewind);
-               REGISTER_CALLBACK (serv, "/rewind", "f", rewind);
-               REGISTER_CALLBACK (serv, "/ffwd", "", ffwd);
-               REGISTER_CALLBACK (serv, "/ffwd", "f", ffwd);
-               REGISTER_CALLBACK (serv, "/transport_stop", "", transport_stop);
-               REGISTER_CALLBACK (serv, "/transport_stop", "f", transport_stop);
-               REGISTER_CALLBACK (serv, "/transport_play", "", transport_play);
-               REGISTER_CALLBACK (serv, "/transport_play", "f", transport_play);
-               REGISTER_CALLBACK (serv, "/transport_frame", "", transport_sample);
-               REGISTER_CALLBACK (serv, "/transport_speed", "", transport_speed);
-               REGISTER_CALLBACK (serv, "/record_enabled", "", record_enabled);
-               REGISTER_CALLBACK (serv, "/set_transport_speed", "f", set_transport_speed);
+               REGISTER_CALLBACK (serv, X_("/refresh"), "", refresh_surface);
+               REGISTER_CALLBACK (serv, X_("/refresh"), "f", refresh_surface);
+               REGISTER_CALLBACK (serv, X_("/strip/list"), "", routes_list);
+               REGISTER_CALLBACK (serv, X_("/strip/list"), "f", routes_list);
+               REGISTER_CALLBACK (serv, X_("/group/list"), "", group_list);
+               REGISTER_CALLBACK (serv, X_("/group/list"), "f", group_list);
+               REGISTER_CALLBACK (serv, X_("/strip/custom/mode"), "f", custom_mode);
+               REGISTER_CALLBACK (serv, X_("/strip/custom/clear"), "f", custom_clear);
+               REGISTER_CALLBACK (serv, X_("/strip/custom/clear"), "", custom_clear);
+               REGISTER_CALLBACK (serv, X_("/surface/list"), "", surface_list);
+               REGISTER_CALLBACK (serv, X_("/surface/list"), "f", surface_list);
+               REGISTER_CALLBACK (serv, X_("/add_marker"), "", add_marker);
+               REGISTER_CALLBACK (serv, X_("/add_marker"), "f", add_marker);
+               REGISTER_CALLBACK (serv, X_("/access_action"), "s", access_action);
+               REGISTER_CALLBACK (serv, X_("/loop_toggle"), "", loop_toggle);
+               REGISTER_CALLBACK (serv, X_("/loop_toggle"), "f", loop_toggle);
+               REGISTER_CALLBACK (serv, X_("/loop_location"), "ii", loop_location);
+               REGISTER_CALLBACK (serv, X_("/goto_start"), "", goto_start);
+               REGISTER_CALLBACK (serv, X_("/goto_start"), "f", goto_start);
+               REGISTER_CALLBACK (serv, X_("/goto_end"), "", goto_end);
+               REGISTER_CALLBACK (serv, X_("/goto_end"), "f", goto_end);
+               REGISTER_CALLBACK (serv, X_("/scrub"), "f", scrub);
+               REGISTER_CALLBACK (serv, X_("/jog"), "f", jog);
+               REGISTER_CALLBACK (serv, X_("/jog/mode"), "f", jog_mode);
+               REGISTER_CALLBACK (serv, X_("/rewind"), "", rewind);
+               REGISTER_CALLBACK (serv, X_("/rewind"), "f", rewind);
+               REGISTER_CALLBACK (serv, X_("/ffwd"), "", ffwd);
+               REGISTER_CALLBACK (serv, X_("/ffwd"), "f", ffwd);
+               REGISTER_CALLBACK (serv, X_("/transport_stop"), "", transport_stop);
+               REGISTER_CALLBACK (serv, X_("/transport_stop"), "f", transport_stop);
+               REGISTER_CALLBACK (serv, X_("/transport_play"), "", transport_play);
+               REGISTER_CALLBACK (serv, X_("/transport_play"), "f", transport_play);
+               REGISTER_CALLBACK (serv, X_("/transport_frame"), "", transport_sample);
+               REGISTER_CALLBACK (serv, X_("/transport_speed"), "", transport_speed);
+               REGISTER_CALLBACK (serv, X_("/record_enabled"), "", record_enabled);
+               REGISTER_CALLBACK (serv, X_("/set_transport_speed"), "f", set_transport_speed);
                // locate ii is position and bool roll
-               REGISTER_CALLBACK (serv, "/locate", "ii", locate);
-               REGISTER_CALLBACK (serv, "/save_state", "", save_state);
-               REGISTER_CALLBACK (serv, "/save_state", "f", save_state);
-               REGISTER_CALLBACK (serv, "/prev_marker", "", prev_marker);
-               REGISTER_CALLBACK (serv, "/prev_marker", "f", prev_marker);
-               REGISTER_CALLBACK (serv, "/next_marker", "", next_marker);
-               REGISTER_CALLBACK (serv, "/next_marker", "f", next_marker);
-               REGISTER_CALLBACK (serv, "/undo", "", undo);
-               REGISTER_CALLBACK (serv, "/undo", "f", undo);
-               REGISTER_CALLBACK (serv, "/redo", "", redo);
-               REGISTER_CALLBACK (serv, "/redo", "f", redo);
-               REGISTER_CALLBACK (serv, "/toggle_punch_in", "", toggle_punch_in);
-               REGISTER_CALLBACK (serv, "/toggle_punch_in", "f", toggle_punch_in);
-               REGISTER_CALLBACK (serv, "/toggle_punch_out", "", toggle_punch_out);
-               REGISTER_CALLBACK (serv, "/toggle_punch_out", "f", toggle_punch_out);
-               REGISTER_CALLBACK (serv, "/rec_enable_toggle", "", rec_enable_toggle);
-               REGISTER_CALLBACK (serv, "/rec_enable_toggle", "f", rec_enable_toggle);
-               REGISTER_CALLBACK (serv, "/toggle_all_rec_enables", "", toggle_all_rec_enables);
-               REGISTER_CALLBACK (serv, "/toggle_all_rec_enables", "f", toggle_all_rec_enables);
-               REGISTER_CALLBACK (serv, "/all_tracks_rec_in", "f", all_tracks_rec_in);
-               REGISTER_CALLBACK (serv, "/all_tracks_rec_out", "f", all_tracks_rec_out);
-               REGISTER_CALLBACK (serv, "/cancel_all_solos", "f", cancel_all_solos);
-               REGISTER_CALLBACK (serv, "/remove_marker", "", remove_marker_at_playhead);
-               REGISTER_CALLBACK (serv, "/remove_marker", "f", remove_marker_at_playhead);
-               REGISTER_CALLBACK (serv, "/jump_bars", "f", jump_by_bars);
-               REGISTER_CALLBACK (serv, "/jump_seconds", "f", jump_by_seconds);
-               REGISTER_CALLBACK (serv, "/mark_in", "", mark_in);
-               REGISTER_CALLBACK (serv, "/mark_in", "f", mark_in);
-               REGISTER_CALLBACK (serv, "/mark_out", "", mark_out);
-               REGISTER_CALLBACK (serv, "/mark_out", "f", mark_out);
-               REGISTER_CALLBACK (serv, "/toggle_click", "", toggle_click);
-               REGISTER_CALLBACK (serv, "/toggle_click", "f", toggle_click);
-               REGISTER_CALLBACK (serv, "/click/level", "f", click_level);
-               REGISTER_CALLBACK (serv, "/midi_panic", "", midi_panic);
-               REGISTER_CALLBACK (serv, "/midi_panic", "f", midi_panic);
-               REGISTER_CALLBACK (serv, "/toggle_roll", "", toggle_roll);
-               REGISTER_CALLBACK (serv, "/toggle_roll", "f", toggle_roll);
-               REGISTER_CALLBACK (serv, "/stop_forget", "", stop_forget);
-               REGISTER_CALLBACK (serv, "/stop_forget", "f", stop_forget);
-               REGISTER_CALLBACK (serv, "/set_punch_range", "", set_punch_range);
-               REGISTER_CALLBACK (serv, "/set_punch_range", "f", set_punch_range);
-               REGISTER_CALLBACK (serv, "/set_loop_range", "", set_loop_range);
-               REGISTER_CALLBACK (serv, "/set_loop_range", "f", set_loop_range);
-               REGISTER_CALLBACK (serv, "/set_session_range", "", set_session_range);
-               REGISTER_CALLBACK (serv, "/set_session_range", "f", set_session_range);
-               REGISTER_CALLBACK (serv, "/toggle_monitor_mute", "", toggle_monitor_mute);
-               REGISTER_CALLBACK (serv, "/toggle_monitor_mute", "f", toggle_monitor_mute);
-               REGISTER_CALLBACK (serv, "/toggle_monitor_dim", "", toggle_monitor_dim);
-               REGISTER_CALLBACK (serv, "/toggle_monitor_dim", "f", toggle_monitor_dim);
-               REGISTER_CALLBACK (serv, "/toggle_monitor_mono", "", toggle_monitor_mono);
-               REGISTER_CALLBACK (serv, "/toggle_monitor_mono", "f", toggle_monitor_mono);
-               REGISTER_CALLBACK (serv, "/quick_snapshot_switch", "", quick_snapshot_switch);
-               REGISTER_CALLBACK (serv, "/quick_snapshot_switch", "f", quick_snapshot_switch);
-               REGISTER_CALLBACK (serv, "/quick_snapshot_stay", "", quick_snapshot_stay);
-               REGISTER_CALLBACK (serv, "/quick_snapshot_stay", "f", quick_snapshot_stay);
-               REGISTER_CALLBACK (serv, "/fit_1_track", "", fit_1_track);
-               REGISTER_CALLBACK (serv, "/fit_1_track", "f", fit_1_track);
-               REGISTER_CALLBACK (serv, "/fit_2_tracks", "", fit_2_tracks);
-               REGISTER_CALLBACK (serv, "/fit_2_tracks", "f", fit_2_tracks);
-               REGISTER_CALLBACK (serv, "/fit_4_tracks", "", fit_4_tracks);
-               REGISTER_CALLBACK (serv, "/fit_4_tracks", "f", fit_4_tracks);
-               REGISTER_CALLBACK (serv, "/fit_8_tracks", "", fit_8_tracks);
-               REGISTER_CALLBACK (serv, "/fit_8_tracks", "f", fit_8_tracks);
-               REGISTER_CALLBACK (serv, "/fit_16_tracks", "", fit_16_tracks);
-               REGISTER_CALLBACK (serv, "/fit_16_tracks", "f", fit_16_tracks);
-               REGISTER_CALLBACK (serv, "/fit_32_tracks", "", fit_32_tracks);
-               REGISTER_CALLBACK (serv, "/fit_32_tracks", "f", fit_32_tracks);
-               REGISTER_CALLBACK (serv, "/fit_all_tracks", "", fit_all_tracks);
-               REGISTER_CALLBACK (serv, "/fit_all_tracks", "f", fit_all_tracks);
-               REGISTER_CALLBACK (serv, "/zoom_100_ms", "", zoom_100_ms);
-               REGISTER_CALLBACK (serv, "/zoom_100_ms", "f", zoom_100_ms);
-               REGISTER_CALLBACK (serv, "/zoom_1_sec", "", zoom_1_sec);
-               REGISTER_CALLBACK (serv, "/zoom_1_sec", "f", zoom_1_sec);
-               REGISTER_CALLBACK (serv, "/zoom_10_sec", "", zoom_10_sec);
-               REGISTER_CALLBACK (serv, "/zoom_10_sec", "f", zoom_10_sec);
-               REGISTER_CALLBACK (serv, "/zoom_1_min", "", zoom_1_min);
-               REGISTER_CALLBACK (serv, "/zoom_1_min", "f", zoom_1_min);
-               REGISTER_CALLBACK (serv, "/zoom_5_min", "", zoom_5_min);
-               REGISTER_CALLBACK (serv, "/zoom_5_min", "f", zoom_5_min);
-               REGISTER_CALLBACK (serv, "/zoom_10_min", "", zoom_10_min);
-               REGISTER_CALLBACK (serv, "/zoom_10_min", "f", zoom_10_min);
-               REGISTER_CALLBACK (serv, "/zoom_to_session", "", zoom_to_session);
-               REGISTER_CALLBACK (serv, "/zoom_to_session", "f", zoom_to_session);
-               REGISTER_CALLBACK (serv, "/temporal_zoom_in", "f", temporal_zoom_in);
-               REGISTER_CALLBACK (serv, "/temporal_zoom_in", "", temporal_zoom_in);
-               REGISTER_CALLBACK (serv, "/temporal_zoom_out", "", temporal_zoom_out);
-               REGISTER_CALLBACK (serv, "/temporal_zoom_out", "f", temporal_zoom_out);
-               REGISTER_CALLBACK (serv, "/scroll_up_1_track", "f", scroll_up_1_track);
-               REGISTER_CALLBACK (serv, "/scroll_up_1_track", "", scroll_up_1_track);
-               REGISTER_CALLBACK (serv, "/scroll_dn_1_track", "f", scroll_dn_1_track);
-               REGISTER_CALLBACK (serv, "/scroll_dn_1_track", "", scroll_dn_1_track);
-               REGISTER_CALLBACK (serv, "/scroll_up_1_page", "f", scroll_up_1_page);
-               REGISTER_CALLBACK (serv, "/scroll_up_1_page", "", scroll_up_1_page);
-               REGISTER_CALLBACK (serv, "/scroll_dn_1_page", "f", scroll_dn_1_page);
-               REGISTER_CALLBACK (serv, "/scroll_dn_1_page", "", scroll_dn_1_page);
-               REGISTER_CALLBACK (serv, "/bank_up", "", bank_up);
-               REGISTER_CALLBACK (serv, "/bank_up", "f", bank_delta);
-               REGISTER_CALLBACK (serv, "/bank_down", "", bank_down);
-               REGISTER_CALLBACK (serv, "/bank_down", "f", bank_down);
-               REGISTER_CALLBACK (serv, "/use_group", "f", use_group);
+               REGISTER_CALLBACK (serv, X_("/locate"), "ii", locate);
+               REGISTER_CALLBACK (serv, X_("/save_state"), "", save_state);
+               REGISTER_CALLBACK (serv, X_("/save_state"), "f", save_state);
+               REGISTER_CALLBACK (serv, X_("/prev_marker"), "", prev_marker);
+               REGISTER_CALLBACK (serv, X_("/prev_marker"), "f", prev_marker);
+               REGISTER_CALLBACK (serv, X_("/next_marker"), "", next_marker);
+               REGISTER_CALLBACK (serv, X_("/next_marker"), "f", next_marker);
+               REGISTER_CALLBACK (serv, X_("/undo"), "", undo);
+               REGISTER_CALLBACK (serv, X_("/undo"), "f", undo);
+               REGISTER_CALLBACK (serv, X_("/redo"), "", redo);
+               REGISTER_CALLBACK (serv, X_("/redo"), "f", redo);
+               REGISTER_CALLBACK (serv, X_("/toggle_punch_in"), "", toggle_punch_in);
+               REGISTER_CALLBACK (serv, X_("/toggle_punch_in"), "f", toggle_punch_in);
+               REGISTER_CALLBACK (serv, X_("/toggle_punch_out"), "", toggle_punch_out);
+               REGISTER_CALLBACK (serv, X_("/toggle_punch_out"), "f", toggle_punch_out);
+               REGISTER_CALLBACK (serv, X_("/rec_enable_toggle"), "", rec_enable_toggle);
+               REGISTER_CALLBACK (serv, X_("/rec_enable_toggle"), "f", rec_enable_toggle);
+               REGISTER_CALLBACK (serv, X_("/toggle_all_rec_enables"), "", toggle_all_rec_enables);
+               REGISTER_CALLBACK (serv, X_("/toggle_all_rec_enables"), "f", toggle_all_rec_enables);
+               REGISTER_CALLBACK (serv, X_("/all_tracks_rec_in"), "f", all_tracks_rec_in);
+               REGISTER_CALLBACK (serv, X_("/all_tracks_rec_out"), "f", all_tracks_rec_out);
+               REGISTER_CALLBACK (serv, X_("/cancel_all_solos"), "f", cancel_all_solos);
+               REGISTER_CALLBACK (serv, X_("/remove_marker"), "", remove_marker_at_playhead);
+               REGISTER_CALLBACK (serv, X_("/remove_marker"), "f", remove_marker_at_playhead);
+               REGISTER_CALLBACK (serv, X_("/jump_bars"), "f", jump_by_bars);
+               REGISTER_CALLBACK (serv, X_("/jump_seconds"), "f", jump_by_seconds);
+               REGISTER_CALLBACK (serv, X_("/mark_in"), "", mark_in);
+               REGISTER_CALLBACK (serv, X_("/mark_in"), "f", mark_in);
+               REGISTER_CALLBACK (serv, X_("/mark_out"), "", mark_out);
+               REGISTER_CALLBACK (serv, X_("/mark_out"), "f", mark_out);
+               REGISTER_CALLBACK (serv, X_("/toggle_click"), "", toggle_click);
+               REGISTER_CALLBACK (serv, X_("/toggle_click"), "f", toggle_click);
+               REGISTER_CALLBACK (serv, X_("/click/level"), "f", click_level);
+               REGISTER_CALLBACK (serv, X_("/midi_panic"), "", midi_panic);
+               REGISTER_CALLBACK (serv, X_("/midi_panic"), "f", midi_panic);
+               REGISTER_CALLBACK (serv, X_("/toggle_roll"), "", toggle_roll);
+               REGISTER_CALLBACK (serv, X_("/toggle_roll"), "f", toggle_roll);
+               REGISTER_CALLBACK (serv, X_("/stop_forget"), "", stop_forget);
+               REGISTER_CALLBACK (serv, X_("/stop_forget"), "f", stop_forget);
+               REGISTER_CALLBACK (serv, X_("/set_punch_range"), "", set_punch_range);
+               REGISTER_CALLBACK (serv, X_("/set_punch_range"), "f", set_punch_range);
+               REGISTER_CALLBACK (serv, X_("/set_loop_range"), "", set_loop_range);
+               REGISTER_CALLBACK (serv, X_("/set_loop_range"), "f", set_loop_range);
+               REGISTER_CALLBACK (serv, X_("/set_session_range"), "", set_session_range);
+               REGISTER_CALLBACK (serv, X_("/set_session_range"), "f", set_session_range);
+               REGISTER_CALLBACK (serv, X_("/toggle_monitor_mute"), "", toggle_monitor_mute);
+               REGISTER_CALLBACK (serv, X_("/toggle_monitor_mute"), "f", toggle_monitor_mute);
+               REGISTER_CALLBACK (serv, X_("/toggle_monitor_dim"), "", toggle_monitor_dim);
+               REGISTER_CALLBACK (serv, X_("/toggle_monitor_dim"), "f", toggle_monitor_dim);
+               REGISTER_CALLBACK (serv, X_("/toggle_monitor_mono"), "", toggle_monitor_mono);
+               REGISTER_CALLBACK (serv, X_("/toggle_monitor_mono"), "f", toggle_monitor_mono);
+               REGISTER_CALLBACK (serv, X_("/quick_snapshot_switch"), "", quick_snapshot_switch);
+               REGISTER_CALLBACK (serv, X_("/quick_snapshot_switch"), "f", quick_snapshot_switch);
+               REGISTER_CALLBACK (serv, X_("/quick_snapshot_stay"), "", quick_snapshot_stay);
+               REGISTER_CALLBACK (serv, X_("/quick_snapshot_stay"), "f", quick_snapshot_stay);
+               REGISTER_CALLBACK (serv, X_("/session_name"), "s", name_session);
+               REGISTER_CALLBACK (serv, X_("/fit_1_track"), "", fit_1_track);
+               REGISTER_CALLBACK (serv, X_("/fit_1_track"), "f", fit_1_track);
+               REGISTER_CALLBACK (serv, X_("/fit_2_tracks"), "", fit_2_tracks);
+               REGISTER_CALLBACK (serv, X_("/fit_2_tracks"), "f", fit_2_tracks);
+               REGISTER_CALLBACK (serv, X_("/fit_4_tracks"), "", fit_4_tracks);
+               REGISTER_CALLBACK (serv, X_("/fit_4_tracks"), "f", fit_4_tracks);
+               REGISTER_CALLBACK (serv, X_("/fit_8_tracks"), "", fit_8_tracks);
+               REGISTER_CALLBACK (serv, X_("/fit_8_tracks"), "f", fit_8_tracks);
+               REGISTER_CALLBACK (serv, X_("/fit_16_tracks"), "", fit_16_tracks);
+               REGISTER_CALLBACK (serv, X_("/fit_16_tracks"), "f", fit_16_tracks);
+               REGISTER_CALLBACK (serv, X_("/fit_32_tracks"), "", fit_32_tracks);
+               REGISTER_CALLBACK (serv, X_("/fit_32_tracks"), "f", fit_32_tracks);
+               REGISTER_CALLBACK (serv, X_("/fit_all_tracks"), "", fit_all_tracks);
+               REGISTER_CALLBACK (serv, X_("/fit_all_tracks"), "f", fit_all_tracks);
+               REGISTER_CALLBACK (serv, X_("/zoom_100_ms"), "", zoom_100_ms);
+               REGISTER_CALLBACK (serv, X_("/zoom_100_ms"), "f", zoom_100_ms);
+               REGISTER_CALLBACK (serv, X_("/zoom_1_sec"), "", zoom_1_sec);
+               REGISTER_CALLBACK (serv, X_("/zoom_1_sec"), "f", zoom_1_sec);
+               REGISTER_CALLBACK (serv, X_("/zoom_10_sec"), "", zoom_10_sec);
+               REGISTER_CALLBACK (serv, X_("/zoom_10_sec"), "f", zoom_10_sec);
+               REGISTER_CALLBACK (serv, X_("/zoom_1_min"), "", zoom_1_min);
+               REGISTER_CALLBACK (serv, X_("/zoom_1_min"), "f", zoom_1_min);
+               REGISTER_CALLBACK (serv, X_("/zoom_5_min"), "", zoom_5_min);
+               REGISTER_CALLBACK (serv, X_("/zoom_5_min"), "f", zoom_5_min);
+               REGISTER_CALLBACK (serv, X_("/zoom_10_min"), "", zoom_10_min);
+               REGISTER_CALLBACK (serv, X_("/zoom_10_min"), "f", zoom_10_min);
+               REGISTER_CALLBACK (serv, X_("/zoom_to_session"), "", zoom_to_session);
+               REGISTER_CALLBACK (serv, X_("/zoom_to_session"), "f", zoom_to_session);
+               REGISTER_CALLBACK (serv, X_("/temporal_zoom_in"), "f", temporal_zoom_in);
+               REGISTER_CALLBACK (serv, X_("/temporal_zoom_in"), "", temporal_zoom_in);
+               REGISTER_CALLBACK (serv, X_("/temporal_zoom_out"), "", temporal_zoom_out);
+               REGISTER_CALLBACK (serv, X_("/temporal_zoom_out"), "f", temporal_zoom_out);
+               REGISTER_CALLBACK (serv, X_("/scroll_up_1_track"), "f", scroll_up_1_track);
+               REGISTER_CALLBACK (serv, X_("/scroll_up_1_track"), "", scroll_up_1_track);
+               REGISTER_CALLBACK (serv, X_("/scroll_dn_1_track"), "f", scroll_dn_1_track);
+               REGISTER_CALLBACK (serv, X_("/scroll_dn_1_track"), "", scroll_dn_1_track);
+               REGISTER_CALLBACK (serv, X_("/scroll_up_1_page"), "f", scroll_up_1_page);
+               REGISTER_CALLBACK (serv, X_("/scroll_up_1_page"), "", scroll_up_1_page);
+               REGISTER_CALLBACK (serv, X_("/scroll_dn_1_page"), "f", scroll_dn_1_page);
+               REGISTER_CALLBACK (serv, X_("/scroll_dn_1_page"), "", scroll_dn_1_page);
+               REGISTER_CALLBACK (serv, X_("/bank_up"), "", bank_up);
+               REGISTER_CALLBACK (serv, X_("/bank_up"), "f", bank_delta);
+               REGISTER_CALLBACK (serv, X_("/bank_down"), "", bank_down);
+               REGISTER_CALLBACK (serv, X_("/bank_down"), "f", bank_down);
+               REGISTER_CALLBACK (serv, X_("/use_group"), "f", use_group);
 
                // controls for "special" strips
-               REGISTER_CALLBACK (serv, "/master/gain", "f", master_set_gain);
-               REGISTER_CALLBACK (serv, "/master/fader", "f", master_set_fader);
-               REGISTER_CALLBACK (serv, "/master/db_delta", "f", master_delta_gain);
-               REGISTER_CALLBACK (serv, "/master/mute", "i", master_set_mute);
-               REGISTER_CALLBACK (serv, "/master/trimdB", "f", master_set_trim);
-               REGISTER_CALLBACK (serv, "/master/pan_stereo_position", "f", master_set_pan_stereo_position);
-               REGISTER_CALLBACK (serv, "/master/select", "f", master_select);
-               REGISTER_CALLBACK (serv, "/monitor/gain", "f", monitor_set_gain);
-               REGISTER_CALLBACK (serv, "/monitor/fader", "f", monitor_set_fader);
-               REGISTER_CALLBACK (serv, "/monitor/db_delta", "f", monitor_delta_gain);
-               REGISTER_CALLBACK (serv, "/monitor/mute", "i", monitor_set_mute);
-               REGISTER_CALLBACK (serv, "/monitor/dim", "i", monitor_set_dim);
-               REGISTER_CALLBACK (serv, "/monitor/mono", "i", monitor_set_mono);
+               REGISTER_CALLBACK (serv, X_("/master/gain"), "f", master_set_gain);
+               REGISTER_CALLBACK (serv, X_("/master/fader"), "f", master_set_fader);
+               REGISTER_CALLBACK (serv, X_("/master/db_delta"), "f", master_delta_gain);
+               REGISTER_CALLBACK (serv, X_("/master/mute"), "i", master_set_mute);
+               REGISTER_CALLBACK (serv, X_("/master/trimdB"), "f", master_set_trim);
+               REGISTER_CALLBACK (serv, X_("/master/pan_stereo_position"), "f", master_set_pan_stereo_position);
+               REGISTER_CALLBACK (serv, X_("/master/select"), "f", master_select);
+               REGISTER_CALLBACK (serv, X_("/monitor/gain"), "f", monitor_set_gain);
+               REGISTER_CALLBACK (serv, X_("/monitor/fader"), "f", monitor_set_fader);
+               REGISTER_CALLBACK (serv, X_("/monitor/db_delta"), "f", monitor_delta_gain);
+               REGISTER_CALLBACK (serv, X_("/monitor/mute"), "i", monitor_set_mute);
+               REGISTER_CALLBACK (serv, X_("/monitor/dim"), "i", monitor_set_dim);
+               REGISTER_CALLBACK (serv, X_("/monitor/mono"), "i", monitor_set_mono);
 
                // Controls for the Selected strip
-               REGISTER_CALLBACK (serv, "/select/recenable", "i", sel_recenable);
-               REGISTER_CALLBACK (serv, "/select/record_safe", "i", sel_recsafe);
-               REGISTER_CALLBACK (serv, "/select/mute", "i", sel_mute);
-               REGISTER_CALLBACK (serv, "/select/solo", "i", sel_solo);
-               REGISTER_CALLBACK (serv, "/select/solo_iso", "i", sel_solo_iso);
-               REGISTER_CALLBACK (serv, "/select/solo_safe", "i", sel_solo_safe);
-               REGISTER_CALLBACK (serv, "/select/monitor_input", "i", sel_monitor_input);
-               REGISTER_CALLBACK (serv, "/select/monitor_disk", "i", sel_monitor_disk);
-               REGISTER_CALLBACK (serv, "/select/polarity", "i", sel_phase);
-               REGISTER_CALLBACK (serv, "/select/gain", "f", sel_gain);
-               REGISTER_CALLBACK (serv, "/select/fader", "f", sel_fader);
-               REGISTER_CALLBACK (serv, "/select/db_delta", "f", sel_dB_delta);
-               REGISTER_CALLBACK (serv, "/select/trimdB", "f", sel_trim);
-               REGISTER_CALLBACK (serv, "/select/hide", "i", sel_hide);
-               REGISTER_CALLBACK (serv, "/select/pan_stereo_position", "f", sel_pan_position);
-               REGISTER_CALLBACK (serv, "/select/pan_stereo_width", "f", sel_pan_width);
-               REGISTER_CALLBACK (serv, "/select/send_gain", "if", sel_sendgain);
-               REGISTER_CALLBACK (serv, "/select/send_fader", "if", sel_sendfader);
-               REGISTER_CALLBACK (serv, "/select/send_enable", "if", sel_sendenable);
-               REGISTER_CALLBACK (serv, "/select/master_send_enable", "i", sel_master_send_enable);
-               REGISTER_CALLBACK (serv, "/select/send_page", "f", sel_send_page);
-               REGISTER_CALLBACK (serv, "/select/plug_page", "f", sel_plug_page);
-               REGISTER_CALLBACK (serv, "/select/plugin", "f", sel_plugin);
-               REGISTER_CALLBACK (serv, "/select/plugin/activate", "f", sel_plugin_activate);
-               REGISTER_CALLBACK (serv, "/select/expand", "i", sel_expand);
-               REGISTER_CALLBACK (serv, "/select/pan_elevation_position", "f", sel_pan_elevation);
-               REGISTER_CALLBACK (serv, "/select/pan_frontback_position", "f", sel_pan_frontback);
-               REGISTER_CALLBACK (serv, "/select/pan_lfe_control", "f", sel_pan_lfe);
-               REGISTER_CALLBACK (serv, "/select/comp_enable", "f", sel_comp_enable);
-               REGISTER_CALLBACK (serv, "/select/comp_threshold", "f", sel_comp_threshold);
-               REGISTER_CALLBACK (serv, "/select/comp_speed", "f", sel_comp_speed);
-               REGISTER_CALLBACK (serv, "/select/comp_mode", "f", sel_comp_mode);
-               REGISTER_CALLBACK (serv, "/select/comp_makeup", "f", sel_comp_makeup);
-               REGISTER_CALLBACK (serv, "/select/eq_enable", "f", sel_eq_enable);
-               REGISTER_CALLBACK (serv, "/select/eq_hpf/freq", "f", sel_eq_hpf_freq);
-               REGISTER_CALLBACK (serv, "/select/eq_hpf/enable", "f", sel_eq_hpf_enable);
-               REGISTER_CALLBACK (serv, "/select/eq_hpf/slope", "f", sel_eq_hpf_slope);
-               REGISTER_CALLBACK (serv, "/select/eq_lpf/freq", "f", sel_eq_lpf_freq);
-               REGISTER_CALLBACK (serv, "/select/eq_lpf/enable", "f", sel_eq_lpf_enable);
-               REGISTER_CALLBACK (serv, "/select/eq_lpf/slope", "f", sel_eq_lpf_slope);
-               REGISTER_CALLBACK (serv, "/select/eq_gain", "if", sel_eq_gain);
-               REGISTER_CALLBACK (serv, "/select/eq_freq", "if", sel_eq_freq);
-               REGISTER_CALLBACK (serv, "/select/eq_q", "if", sel_eq_q);
-               REGISTER_CALLBACK (serv, "/select/eq_shape", "if", sel_eq_shape);
+               REGISTER_CALLBACK (serv, X_("/select/recenable"), "i", sel_recenable);
+               REGISTER_CALLBACK (serv, X_("/select/record_safe"), "i", sel_recsafe);
+               REGISTER_CALLBACK (serv, X_("/select/name"), "s", sel_rename);
+               REGISTER_CALLBACK (serv, X_("/select/comment"), "s", sel_comment);
+               REGISTER_CALLBACK (serv, X_("/select/mute"), "i", sel_mute);
+               REGISTER_CALLBACK (serv, X_("/select/solo"), "i", sel_solo);
+               REGISTER_CALLBACK (serv, X_("/select/solo_iso"), "i", sel_solo_iso);
+               REGISTER_CALLBACK (serv, X_("/select/solo_safe"), "i", sel_solo_safe);
+               REGISTER_CALLBACK (serv, X_("/select/monitor_input"), "i", sel_monitor_input);
+               REGISTER_CALLBACK (serv, X_("/select/monitor_disk"), "i", sel_monitor_disk);
+               REGISTER_CALLBACK (serv, X_("/select/polarity"), "i", sel_phase);
+               REGISTER_CALLBACK (serv, X_("/select/gain"), "f", sel_gain);
+               REGISTER_CALLBACK (serv, X_("/select/fader"), "f", sel_fader);
+               REGISTER_CALLBACK (serv, X_("/select/db_delta"), "f", sel_dB_delta);
+               REGISTER_CALLBACK (serv, X_("/select/trimdB"), "f", sel_trim);
+               REGISTER_CALLBACK (serv, X_("/select/hide"), "i", sel_hide);
+               REGISTER_CALLBACK (serv, X_("/select/previous"), "f", sel_previous);
+               REGISTER_CALLBACK (serv, X_("/select/previous"), "", sel_previous);
+               REGISTER_CALLBACK (serv, X_("/select/next"), "f", sel_next);
+               REGISTER_CALLBACK (serv, X_("/select/next"), "", sel_next);
+               REGISTER_CALLBACK (serv, X_("/select/pan_stereo_position"), "f", sel_pan_position);
+               REGISTER_CALLBACK (serv, X_("/select/pan_stereo_width"), "f", sel_pan_width);
+               REGISTER_CALLBACK (serv, X_("/select/send_gain"), "if", sel_sendgain);
+               REGISTER_CALLBACK (serv, X_("/select/send_fader"), "if", sel_sendfader);
+               REGISTER_CALLBACK (serv, X_("/select/send_enable"), "if", sel_sendenable);
+               REGISTER_CALLBACK (serv, X_("/select/master_send_enable"), "i", sel_master_send_enable);
+               REGISTER_CALLBACK (serv, X_("/select/send_page"), "f", sel_send_page);
+               REGISTER_CALLBACK (serv, X_("/select/plug_page"), "f", sel_plug_page);
+               REGISTER_CALLBACK (serv, X_("/select/plugin"), "f", sel_plugin);
+               REGISTER_CALLBACK (serv, X_("/select/plugin/activate"), "f", sel_plugin_activate);
+               REGISTER_CALLBACK (serv, X_("/select/expand"), "i", sel_expand);
+               REGISTER_CALLBACK (serv, X_("/select/pan_elevation_position"), "f", sel_pan_elevation);
+               REGISTER_CALLBACK (serv, X_("/select/pan_frontback_position"), "f", sel_pan_frontback);
+               REGISTER_CALLBACK (serv, X_("/select/pan_lfe_control"), "f", sel_pan_lfe);
+               REGISTER_CALLBACK (serv, X_("/select/comp_enable"), "f", sel_comp_enable);
+               REGISTER_CALLBACK (serv, X_("/select/comp_threshold"), "f", sel_comp_threshold);
+               REGISTER_CALLBACK (serv, X_("/select/comp_speed"), "f", sel_comp_speed);
+               REGISTER_CALLBACK (serv, X_("/select/comp_mode"), "f", sel_comp_mode);
+               REGISTER_CALLBACK (serv, X_("/select/comp_makeup"), "f", sel_comp_makeup);
+               REGISTER_CALLBACK (serv, X_("/select/eq_enable"), "f", sel_eq_enable);
+               REGISTER_CALLBACK (serv, X_("/select/eq_hpf/freq"), "f", sel_eq_hpf_freq);
+               REGISTER_CALLBACK (serv, X_("/select/eq_hpf/enable"), "f", sel_eq_hpf_enable);
+               REGISTER_CALLBACK (serv, X_("/select/eq_hpf/slope"), "f", sel_eq_hpf_slope);
+               REGISTER_CALLBACK (serv, X_("/select/eq_lpf/freq"), "f", sel_eq_lpf_freq);
+               REGISTER_CALLBACK (serv, X_("/select/eq_lpf/enable"), "f", sel_eq_lpf_enable);
+               REGISTER_CALLBACK (serv, X_("/select/eq_lpf/slope"), "f", sel_eq_lpf_slope);
+               REGISTER_CALLBACK (serv, X_("/select/eq_gain"), "if", sel_eq_gain);
+               REGISTER_CALLBACK (serv, X_("/select/eq_freq"), "if", sel_eq_freq);
+               REGISTER_CALLBACK (serv, X_("/select/eq_q"), "if", sel_eq_q);
+               REGISTER_CALLBACK (serv, X_("/select/eq_shape"), "if", sel_eq_shape);
+               REGISTER_CALLBACK (serv, X_("/select/add_personal_send"), "s", sel_new_personal_send);
 
                /* These commands require the route index in addition to the arg; TouchOSC (et al) can't use these  */
-               REGISTER_CALLBACK (serv, "/strip/mute", "ii", route_mute);
-               REGISTER_CALLBACK (serv, "/strip/solo", "ii", route_solo);
-               REGISTER_CALLBACK (serv, "/strip/solo_iso", "ii", route_solo_iso);
-               REGISTER_CALLBACK (serv, "/strip/solo_safe", "ii", route_solo_safe);
-               REGISTER_CALLBACK (serv, "/strip/recenable", "ii", route_recenable);
-               REGISTER_CALLBACK (serv, "/strip/record_safe", "ii", route_recsafe);
-               REGISTER_CALLBACK (serv, "/strip/monitor_input", "ii", route_monitor_input);
-               REGISTER_CALLBACK (serv, "/strip/monitor_disk", "ii", route_monitor_disk);
-               REGISTER_CALLBACK (serv, "/strip/expand", "ii", strip_expand);
-               REGISTER_CALLBACK (serv, "/strip/select", "ii", strip_gui_select);
-               REGISTER_CALLBACK (serv, "/strip/polarity", "ii", strip_phase);
-               REGISTER_CALLBACK (serv, "/strip/gain", "if", route_set_gain_dB);
-               REGISTER_CALLBACK (serv, "/strip/fader", "if", route_set_gain_fader);
-               REGISTER_CALLBACK (serv, "/strip/trimdB", "if", route_set_trim_dB);
-               REGISTER_CALLBACK (serv, "/strip/pan_stereo_position", "if", route_set_pan_stereo_position);
-               REGISTER_CALLBACK (serv, "/strip/pan_stereo_width", "if", route_set_pan_stereo_width);
-               REGISTER_CALLBACK (serv, "/strip/plugin/parameter", "iiif", route_plugin_parameter);
+               REGISTER_CALLBACK (serv, X_("/strip/mute"), "ii", route_mute);
+               REGISTER_CALLBACK (serv, X_("/strip/solo"), "ii", route_solo);
+               REGISTER_CALLBACK (serv, X_("/strip/solo_iso"), "ii", route_solo_iso);
+               REGISTER_CALLBACK (serv, X_("/strip/solo_safe"), "ii", route_solo_safe);
+               REGISTER_CALLBACK (serv, X_("/strip/recenable"), "ii", route_recenable);
+               REGISTER_CALLBACK (serv, X_("/strip/record_safe"), "ii", route_recsafe);
+               REGISTER_CALLBACK (serv, X_("/strip/monitor_input"), "ii", route_monitor_input);
+               REGISTER_CALLBACK (serv, X_("/strip/monitor_disk"), "ii", route_monitor_disk);
+               REGISTER_CALLBACK (serv, X_("/strip/expand"), "ii", strip_expand);
+               REGISTER_CALLBACK (serv, X_("/strip/hide"), "ii", strip_hide);
+               REGISTER_CALLBACK (serv, X_("/strip/select"), "ii", strip_gui_select);
+               REGISTER_CALLBACK (serv, X_("/strip/polarity"), "ii", strip_phase);
+               REGISTER_CALLBACK (serv, X_("/strip/gain"), "if", route_set_gain_dB);
+               REGISTER_CALLBACK (serv, X_("/strip/fader"), "if", route_set_gain_fader);
+               REGISTER_CALLBACK (serv, X_("/strip/db_delta"), "if", strip_db_delta);
+               REGISTER_CALLBACK (serv, X_("/strip/trimdB"), "if", route_set_trim_dB);
+               REGISTER_CALLBACK (serv, X_("/strip/pan_stereo_position"), "if", route_set_pan_stereo_position);
+               REGISTER_CALLBACK (serv, X_("/strip/pan_stereo_width"), "if", route_set_pan_stereo_width);
+               REGISTER_CALLBACK (serv, X_("/strip/plugin/parameter"), "iiif", route_plugin_parameter);
                // prints to cerr only
-               REGISTER_CALLBACK (serv, "/strip/plugin/parameter/print", "iii", route_plugin_parameter_print);
-               REGISTER_CALLBACK (serv, "/strip/plugin/activate", "ii", route_plugin_activate);
-               REGISTER_CALLBACK (serv, "/strip/plugin/deactivate", "ii", route_plugin_deactivate);
-               REGISTER_CALLBACK (serv, "/strip/send/gain", "iif", route_set_send_gain_dB);
-               REGISTER_CALLBACK (serv, "/strip/send/fader", "iif", route_set_send_fader);
-               REGISTER_CALLBACK (serv, "/strip/send/enable", "iif", route_set_send_enable);
-               REGISTER_CALLBACK(serv, "/strip/name", "is", route_rename);
-               REGISTER_CALLBACK(serv, "/strip/sends", "i", route_get_sends);
-               REGISTER_CALLBACK(serv, "/strip/receives", "i", route_get_receives);
-               REGISTER_CALLBACK(serv, "/strip/plugin/list", "i", route_plugin_list);
-               REGISTER_CALLBACK(serv, "/strip/plugin/descriptor", "ii", route_plugin_descriptor);
-               REGISTER_CALLBACK(serv, "/strip/plugin/reset", "ii", route_plugin_reset);
+               REGISTER_CALLBACK (serv, X_("/strip/plugin/parameter/print"), "iii", route_plugin_parameter_print);
+               REGISTER_CALLBACK (serv, X_("/strip/plugin/activate"), "ii", route_plugin_activate);
+               REGISTER_CALLBACK (serv, X_("/strip/plugin/deactivate"), "ii", route_plugin_deactivate);
+               REGISTER_CALLBACK (serv, X_("/strip/send/gain"), "iif", route_set_send_gain_dB);
+               REGISTER_CALLBACK (serv, X_("/strip/send/fader"), "iif", route_set_send_fader);
+               REGISTER_CALLBACK (serv, X_("/strip/send/enable"), "iif", route_set_send_enable);
+               REGISTER_CALLBACK (serv, X_("/strip/name"), "is", route_rename);
+               REGISTER_CALLBACK (serv, X_("/strip/group"), "is", strip_group);
+               REGISTER_CALLBACK (serv, X_("/strip/sends"), "i", route_get_sends);
+               REGISTER_CALLBACK (serv, X_("/strip/receives"), "i", route_get_receives);
+               REGISTER_CALLBACK (serv, X_("/strip/plugin/list"), "i", route_plugin_list);
+               REGISTER_CALLBACK (serv, X_("/strip/plugin/descriptor"), "ii", route_plugin_descriptor);
+               REGISTER_CALLBACK (serv, X_("/strip/plugin/reset"), "ii", route_plugin_reset);
 
                /* still not-really-standardized query interface */
                //REGISTER_CALLBACK (serv, "/ardour/*/#current_value", "", current_value);
@@ -744,7 +761,7 @@ OSC::send_current_value (const char* path, lo_arg** argv, int argc, lo_message m
                        lo_message_add_string (reply, "not found");
                } else {
 
-                       if (strcmp (path, "/strip/state") == 0) {
+                       if (strcmp (path, X_("/strip/state")) == 0) {
 
                                if (boost::dynamic_pointer_cast<AudioTrack>(r)) {
                                        lo_message_add_string (reply, "AT");
@@ -760,11 +777,11 @@ OSC::send_current_value (const char* path, lo_arg** argv, int argc, lo_message m
                                lo_message_add_int32 (reply, r->muted());
                                lo_message_add_int32 (reply, r->soloed());
 
-                       } else if (strcmp (path, "/strip/mute") == 0) {
+                       } else if (strcmp (path, X_("/strip/mute")) == 0) {
 
                                lo_message_add_int32 (reply, (float) r->muted());
 
-                       } else if (strcmp (path, "/strip/solo") == 0) {
+                       } else if (strcmp (path, X_("/strip/solo")) == 0) {
 
                                lo_message_add_int32 (reply, r->soloed());
                        }
@@ -773,9 +790,9 @@ OSC::send_current_value (const char* path, lo_arg** argv, int argc, lo_message m
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (sur->feedback[14]) {
-               lo_send_message (get_address (msg), "/reply", reply);
+               lo_send_message (get_address (msg), X_("/reply"), reply);
        } else {
-               lo_send_message (get_address (msg), "#reply", reply);
+               lo_send_message (get_address (msg), X_("#reply"), reply);
        }
        lo_message_free (reply);
 }
@@ -806,32 +823,39 @@ OSC::catchall (const char *path, const char* types, lo_arg **argv, int argc, lo_
                set = &(link_sets[ls]);
                sur->custom_mode = set->custom_mode;
                sur->custom_strips = set->custom_strips;
+               sur->temp_mode = set->temp_mode;
+               sur->temp_strips = set->temp_strips;
+               sur->temp_master = set->temp_master;
        }
 
-       if (strstr (path, "/automation")) {
+       if (strstr (path, X_("/automation"))) {
                ret = set_automation (path, types, argv, argc, msg);
 
        } else
-       if (strstr (path, "/touch")) {
+       if (strstr (path, X_("/touch"))) {
                ret = touch_detect (path, types, argv, argc, msg);
 
        } else
-       if (len >= 17 && !strcmp (&path[len-15], "/#current_value")) {
+       if (strstr (path, X_("/spill"))) {
+               ret = spill (path, types, argv, argc, msg);
+
+       } else
+       if (len >= 17 && !strcmp (&path[len-15], X_("/#current_value"))) {
                current_value_query (path, len, argv, argc, msg);
                ret = 0;
 
        } else
-       if (!strncmp (path, "/cue/", 5)) {
+       if (!strncmp (path, X_("/cue/"), 5)) {
 
                ret = cue_parse (path, types, argv, argc, msg);
 
        } else
-       if (!strncmp (path, "/select/plugin/parameter", 24)) {
+       if (!strncmp (path, X_("/select/plugin/parameter"), 24)) {
 
                ret = select_plugin_parameter (path, types, argv, argc, msg);
 
        } else
-       if (!strncmp (path, "/access_action/", 15)) {
+       if (!strncmp (path, X_("/access_action/"), 15)) {
                check_surface (msg);
                if (!(argc && !argv[0]->i)) {
                        std::string action_path = path;
@@ -841,10 +865,10 @@ OSC::catchall (const char *path, const char* types, lo_arg **argv, int argc, lo_
 
                ret = 0;
        } else
-       if (strcmp (path, "/strip/listen") == 0) {
+       if (strcmp (path, X_("/strip/listen")) == 0) {
                if (argc <= 0) {
                        PBD::warning << "OSC: Wrong number of parameters." << endmsg;
-               } else if (sur->custom_mode) {
+               } else if (sur->custom_mode && !sur->temp_mode) {
                        PBD::warning << "OSC: Can't add strips with custom enabled." << endmsg;
                } else {
                        for (int n = 0; n < argc; ++n) {
@@ -864,10 +888,10 @@ OSC::catchall (const char *path, const char* types, lo_arg **argv, int argc, lo_
                }
                ret = 0;
        } else
-       if (strcmp (path, "/strip/ignore") == 0) {
+       if (strcmp (path, X_("/strip/ignore")) == 0) {
                if (argc <= 0) {
                        PBD::warning << "OSC: Wrong number of parameters." << endmsg;
-               } else if (!sur->custom_mode) {
+               } else if (!sur->custom_mode || sur->temp_mode) {
                        PBD::warning << "OSC: Can't remove strips without custom enabled." << endmsg;
                } else {
                        for (int n = 0; n < argc; ++n) {
@@ -889,21 +913,21 @@ OSC::catchall (const char *path, const char* types, lo_arg **argv, int argc, lo_
 
                ret = 0;
        } else
-       if (strstr (path, "/strip") && (argc != 1)) {
+       if (strstr (path, X_("/strip")) && (argc != 1)) {
                // All of the strip commands below require 1 parameter
                PBD::warning << "OSC: Wrong number of parameters." << endmsg;
        } else
-       if (!strncmp (path, "/strip/gain/", 12) && strlen (path) > 12) {
+       if (!strncmp (path, X_("/strip/gain/"), 12) && strlen (path) > 12) {
                // in dB
                int ssid = atoi (&path[12]);
                ret = route_set_gain_dB (ssid, argv[0]->f, msg);
        }
-       else if (!strncmp (path, "/strip/fader/", 13) && strlen (path) > 13) {
+       else if (!strncmp (path, X_("/strip/fader/"), 13) && strlen (path) > 13) {
                // in fader position
                int ssid = atoi (&path[13]);
                ret = route_set_gain_fader (ssid, argv[0]->f, msg);
        }
-       else if (!strncmp (path, "/strip/db_delta", 15)) {
+       else if (!strncmp (path, X_("/strip/db_delta"), 15)) {
                // in db delta
                int ssid;
                int ar_off = 0;
@@ -927,85 +951,95 @@ OSC::catchall (const char *path, const char* types, lo_arg **argv, int argc, lo_
                }
                ret = strip_db_delta (ssid, delta, msg);
        }
-       else if (!strncmp (path, "/strip/trimdB/", 14) && strlen (path) > 14) {
+       else if (!strncmp (path, X_("/strip/trimdB/"), 14) && strlen (path) > 14) {
                int ssid = atoi (&path[14]);
                ret = route_set_trim_dB (ssid, argv[0]->f, msg);
        }
-       else if (!strncmp (path, "/strip/pan_stereo_position/", 27) && strlen (path) > 27) {
+       else if (!strncmp (path, X_("/strip/pan_stereo_position/"), 27) && strlen (path) > 27) {
                int ssid = atoi (&path[27]);
                ret = route_set_pan_stereo_position (ssid, argv[0]->f, msg);
        }
-       else if (!strncmp (path, "/strip/mute/", 12) && strlen (path) > 12) {
+       else if (!strncmp (path, X_("/strip/mute/"), 12) && strlen (path) > 12) {
                int ssid = atoi (&path[12]);
                ret = route_mute (ssid, argv[0]->i, msg);
        }
-       else if (!strncmp (path, "/strip/solo/", 12) && strlen (path) > 12) {
+       else if (!strncmp (path, X_("/strip/solo/"), 12) && strlen (path) > 12) {
                int ssid = atoi (&path[12]);
                ret = route_solo (ssid, argv[0]->i, msg);
        }
-       else if (!strncmp (path, "/strip/monitor_input/", 21) && strlen (path) > 21) {
+       else if (!strncmp (path, X_("/strip/monitor_input/"), 21) && strlen (path) > 21) {
                int ssid = atoi (&path[21]);
                ret = route_monitor_input (ssid, argv[0]->i, msg);
        }
-       else if (!strncmp (path, "/strip/monitor_disk/", 20) && strlen (path) > 20) {
+       else if (!strncmp (path, X_("/strip/monitor_disk/"), 20) && strlen (path) > 20) {
                int ssid = atoi (&path[20]);
                ret = route_monitor_disk (ssid, argv[0]->i, msg);
        }
-       else if (!strncmp (path, "/strip/recenable/", 17) && strlen (path) > 17) {
+       else if (!strncmp (path, X_("/strip/recenable/"), 17) && strlen (path) > 17) {
                int ssid = atoi (&path[17]);
                ret = route_recenable (ssid, argv[0]->i, msg);
        }
-       else if (!strncmp (path, "/strip/record_safe/", 19) && strlen (path) > 19) {
+       else if (!strncmp (path, X_("/strip/record_safe/"), 19) && strlen (path) > 19) {
                int ssid = atoi (&path[19]);
                ret = route_recsafe (ssid, argv[0]->i, msg);
        }
-       else if (!strncmp (path, "/strip/expand/", 14) && strlen (path) > 14) {
+       else if (!strncmp (path, X_("/strip/expand/"), 14) && strlen (path) > 14) {
                int ssid = atoi (&path[14]);
                ret = strip_expand (ssid, argv[0]->i, msg);
        }
-       else if (!strncmp (path, "/strip/select/", 14) && strlen (path) > 14) {
+       else if (!strncmp (path, X_("/strip/hide/"), 12) && strlen (path) > 12) {
+               int ssid = atoi (&path[12]);
+               ret = strip_hide (ssid, argv[0]->i, msg);
+       }
+       else if (!strncmp (path, X_("/strip/select/"), 14) && strlen (path) > 14) {
                int ssid = atoi (&path[14]);
                ret = strip_gui_select (ssid, argv[0]->i, msg);
-       } else
-       if (strstr (path, "/select") && (argc != 1)) {
+       }
+       else if (strstr (path, X_("/select/group"))) {
+               ret = parse_sel_group (path, types, argv, argc, msg);
+       }
+       else if (strstr (path, X_("/select/vca"))) {
+               ret = parse_sel_vca (path, types, argv, argc, msg);
+       }
+       else if (strstr (path, X_("/select")) && (argc != 1)) {
                // All of the select commands below require 1 parameter
                PBD::warning << "OSC: Wrong number of parameters." << endmsg;
        }
-       else if (!strncmp (path, "/select/send_gain/", 18) && strlen (path) > 18) {
+       else if (!strncmp (path, X_("/select/send_gain/"), 18) && strlen (path) > 18) {
                int ssid = atoi (&path[18]);
                ret = sel_sendgain (ssid, argv[0]->f, msg);
        }
-       else if (!strncmp (path, "/select/send_fader/", 19) && strlen (path) > 19) {
+       else if (!strncmp (path, X_("/select/send_fader/"), 19) && strlen (path) > 19) {
                int ssid = atoi (&path[19]);
                ret = sel_sendfader (ssid, argv[0]->f, msg);
        }
-       else if (!strncmp (path, "/select/send_enable/", 20) && strlen (path) > 20) {
+       else if (!strncmp (path, X_("/select/send_enable/"), 20) && strlen (path) > 20) {
                int ssid = atoi (&path[20]);
                ret = sel_sendenable (ssid, argv[0]->f, msg);
        }
-       else if (!strncmp (path, "/select/eq_gain/", 16) && strlen (path) > 16) {
+       else if (!strncmp (path, X_("/select/eq_gain/"), 16) && strlen (path) > 16) {
                int ssid = atoi (&path[16]);
                ret = sel_eq_gain (ssid, argv[0]->f, msg);
        }
-       else if (!strncmp (path, "/select/eq_freq/", 16) && strlen (path) > 16) {
+       else if (!strncmp (path, X_("/select/eq_freq/"), 16) && strlen (path) > 16) {
                int ssid = atoi (&path[16]);
                ret = sel_eq_freq (ssid, argv[0]->f , msg);
        }
-       else if (!strncmp (path, "/select/eq_q/", 13) && strlen (path) > 13) {
+       else if (!strncmp (path, X_("/select/eq_q/"), 13) && strlen (path) > 13) {
                int ssid = atoi (&path[13]);
                ret = sel_eq_q (ssid, argv[0]->f, msg);
        }
-       else if (!strncmp (path, "/select/eq_shape/", 17) && strlen (path) > 17) {
+       else if (!strncmp (path, X_("/select/eq_shape/"), 17) && strlen (path) > 17) {
                int ssid = atoi (&path[17]);
                ret = sel_eq_shape (ssid, argv[0]->f, msg);
        }
-       else if (!strncmp (path, "/marker", 7)) {
+       else if (!strncmp (path, X_("/marker"), 7)) {
                ret = set_marker (types, argv, argc, msg);
        }
-       else if (!strncmp (path, "/set_surface", 12)) {
+       else if (!strncmp (path, X_("/set_surface"), 12)) {
                ret = surface_parse (path, types, argv, argc, msg);
        }
-       else if (strstr (path, "/link")) {
+       else if (strstr (path, X_("/link"))) {
                ret = parse_link (path, types, argv, argc, msg);
        }
        if (ret) {
@@ -1091,7 +1125,7 @@ void
 OSC::session_exported (std::string path, std::string name)
 {
        lo_address listener = lo_address_new (NULL, "7770");
-       lo_send (listener, "/session/exported", "ss", path.c_str(), name.c_str());
+       lo_send (listener, X_("/session/exported"), "ss", path.c_str(), name.c_str());
        lo_address_free (listener);
 }
 
@@ -1115,37 +1149,37 @@ OSC::current_value (const char */*path*/, const char */*types*/, lo_arg **/*argv
        const char *retpath = argv[2]->s;
 
 
-       if (strcmp (argv[0]->s, "transport_frame") == 0) {
+       if (strcmp (argv[0]->s, X_("transport_frame")) == 0) {
 
                if (session) {
                        lo_send (addr, retpath, "i", session->transport_sample());
                }
 
-       } else if (strcmp (argv[0]->s, "transport_speed") == 0) {
+       } else if (strcmp (argv[0]->s, X_("transport_speed")) == 0) {
 
                if (session) {
                        lo_send (addr, retpath, "i", session->transport_sample());
                }
 
-       } else if (strcmp (argv[0]->s, "transport_locked") == 0) {
+       } else if (strcmp (argv[0]->s, X_("transport_locked")) == 0) {
 
                if (session) {
                        lo_send (addr, retpath, "i", session->transport_sample());
                }
 
-       } else if (strcmp (argv[0]->s, "punch_in") == 0) {
+       } else if (strcmp (argv[0]->s, X_("punch_in")) == 0) {
 
                if (session) {
                        lo_send (addr, retpath, "i", session->transport_sample());
                }
 
-       } else if (strcmp (argv[0]->s, "punch_out") == 0) {
+       } else if (strcmp (argv[0]->s, X_("punch_out")) == 0) {
 
                if (session) {
                        lo_send (addr, retpath, "i", session->transport_sample());
                }
 
-       } else if (strcmp (argv[0]->s, "rec_enable") == 0) {
+       } else if (strcmp (argv[0]->s, X_("rec_enable")) == 0) {
 
                if (session) {
                        lo_send (addr, retpath, "i", session->transport_sample());
@@ -1227,9 +1261,9 @@ OSC::routes_list (lo_message msg)
                                lo_message_add_int32 (reply, s->rec_enable_control()->get_value());
                        }
                        if (sur->feedback[14]) {
-                               lo_send_message (get_address (msg), "/reply", reply);
+                               lo_send_message (get_address (msg), X_("/reply"), reply);
                        } else {
-                               lo_send_message (get_address (msg), "#reply", reply);
+                               lo_send_message (get_address (msg), X_("#reply"), reply);
                        }
                        lo_message_free (reply);
                }
@@ -1238,7 +1272,7 @@ OSC::routes_list (lo_message msg)
        // Send end of listing message
        lo_message reply = lo_message_new ();
 
-       lo_message_add_string (reply, "end_route_list");
+       lo_message_add_string (reply, X_("end_route_list"));
        lo_message_add_int64 (reply, session->sample_rate());
        lo_message_add_int64 (reply, session->current_end_sample());
        if (session->monitor_out()) {
@@ -1249,9 +1283,9 @@ OSC::routes_list (lo_message msg)
        }
 
        if (sur->feedback[14]) {
-               lo_send_message (get_address (msg), "/reply", reply);
+               lo_send_message (get_address (msg), X_("/reply"), reply);
        } else {
-               lo_send_message (get_address (msg), "#reply", reply);
+               lo_send_message (get_address (msg), X_("#reply"), reply);
        }
 
        lo_message_free (reply);
@@ -1284,9 +1318,19 @@ OSC::get_surfaces ()
        Glib::Threads::Mutex::Lock lm (surfaces_lock);
        for (uint32_t it = 0; it < _surface.size(); it++) {
                OSCSurface* sur = &_surface[it];
-               PBD::info << string_compose ("\n  Surface: %1 - URL: %2\n", it, sur->remote_url);
+               char *chost = lo_url_get_hostname (sur->remote_url.c_str());
+               string host = chost;
+               free (chost);
+               string port = get_port (host);
+               if (port != "auto") {
+                       port = "Manual port";
+               } else {
+                       port = "Auto port";
+               }
+               PBD::info << string_compose ("\n  Surface: %1 - URL: %2  %3\n", it, sur->remote_url, port);
                PBD::info << string_compose ("  Number of strips: %1   Bank size: %2   Current Bank %3\n", sur->nstrips, sur->bank_size, sur->bank);
                PBD::info << string_compose ("  Use Custom: %1   Custom Strips: %2\n", sur->custom_mode, sur->custom_strips.size ());
+               PBD::info << string_compose ("  Temp Mode: %1   Temp Strips: %2\n", sur->temp_mode, sur->temp_strips.size ());
                bool ug = false;
                if (sur->usegroup == PBD::Controllable::UseGroup) {
                        ug = true;
@@ -1315,6 +1359,7 @@ OSC::get_surfaces ()
                PBD::info << string_compose ("  Bank size: %1   Current bank: %2   Strip Types: %3\n", set->banksize, set->bank, set->strip_types.to_ulong());
                PBD::info << string_compose ("  Auto bank sizing: %1 Linkset not ready flag: %2\n", set->autobank, set->not_ready);
                PBD::info << string_compose ("  Use Custom: %1 Number of Custom Strips: %2\n", set->custom_mode, set->custom_strips.size ());
+               PBD::info << string_compose ("  Temp Mode: %1 Number of Temp Strips: %2\n", set->temp_mode, set->temp_strips.size ());
        }
        PBD::info << endmsg;
 }
@@ -1343,11 +1388,17 @@ OSC::custom_clear (lo_message msg)
 
 int
 OSC::custom_mode (float state, lo_message msg)
+{
+       return _custom_mode ((uint32_t) state, get_address (msg));
+}
+
+int
+OSC::_custom_mode (uint32_t state, lo_address addr)
 {
        if (!session) {
                return 0;
        }
-       OSCSurface *sur = get_surface(get_address (msg), true);
+       OSCSurface *sur = get_surface(addr, true);
        LinkSet *set;
        uint32_t ls = sur->linkset;
 
@@ -1356,6 +1407,7 @@ OSC::custom_mode (float state, lo_message msg)
                sur->custom_mode = set->custom_mode;
                sur->custom_strips = set->custom_strips;
        }
+       sur->temp_mode = TempOff;
        if (state > 0){
                if (sur->custom_strips.size () == 0) {
                        PBD::warning << "No custom strips set to enable" << endmsg;
@@ -1366,9 +1418,9 @@ OSC::custom_mode (float state, lo_message msg)
                        return -1;
                } else {
                        if (sur->bank_size) {
-                               sur->custom_mode = (uint32_t) state | 0x4;
+                               sur->custom_mode = state | 0x4;
                        } else {
-                               sur->custom_mode = (uint32_t) state;
+                               sur->custom_mode = state;
                        }
                        sur->strips = get_sorted_stripables(sur->strip_types, sur->cue, sur->custom_mode, sur->custom_strips);
                        sur->nstrips = sur->custom_strips.size();
@@ -1381,8 +1433,9 @@ OSC::custom_mode (float state, lo_message msg)
        if (ls) {
                set->custom_mode = sur->custom_mode;
                set->strips = sur->strips;
+               set->temp_mode = sur->temp_mode;
        }
-       return set_bank (1, msg);
+       return _set_bank (1, addr);
 }
 
 int
@@ -1395,16 +1448,45 @@ OSC::cancel_all_solos ()
 lo_address
 OSC::get_address (lo_message msg)
 {
+       lo_address addr = lo_message_get_source (msg);
+       string host = lo_address_get_hostname (addr);
+       string port = lo_address_get_port (addr);
+       int protocol = lo_address_get_protocol (addr);
+       string saved_port = get_port (host);
+       if (saved_port != "") {
+               if (saved_port != "auto") {
+                       port = saved_port;
+                       return lo_address_new_with_proto (protocol, host.c_str(), port.c_str());
+               } else {
+                       return lo_message_get_source (msg);
+               }
+       }
+
+       // if we get here we need to add a new entry for this surface
+       PortAdd new_port;
+       new_port.host = host;
        if (address_only) {
-               lo_address addr = lo_message_get_source (msg);
-               string host = lo_address_get_hostname (addr);
-               int protocol = lo_address_get_protocol (addr);
+               new_port.port = remote_port;
+               _ports.push_back (new_port);
                return lo_address_new_with_proto (protocol, host.c_str(), remote_port.c_str());
        } else {
+               new_port.port = "auto";
+               _ports.push_back (new_port);
                return lo_message_get_source (msg);
        }
 }
 
+string
+OSC::get_port (string host)
+{
+       for (uint32_t i = 0; i < _ports.size (); i++) {
+               if (_ports[i].host == host) {
+                       return _ports[i].port;
+               }
+       }
+       return "";
+}
+
 int
 OSC::refresh_surface (lo_message msg)
 {
@@ -1435,6 +1517,7 @@ OSC::clear_devices ()
        }
        _surface.clear();
        link_sets.clear ();
+       _ports.clear ();
 
        PresentationInfo::Change.connect (session_connections, MISSING_INVALIDATOR, boost::bind (&OSC::recalcbanks, this), this);
 
@@ -1474,7 +1557,7 @@ OSC::parse_link (const char *path, const char* types, lo_arg **argv, int argc, l
        if (!set) {
                return 0;
        }
-       if (!strncmp (path, "/link/bank_size", 15)) {
+       if (!strncmp (path, X_("/link/bank_size"), 15)) {
                ls->banksize = (uint32_t) data;
                ls->autobank = false;
                ls->not_ready = link_check (set);
@@ -1486,7 +1569,7 @@ OSC::parse_link (const char *path, const char* types, lo_arg **argv, int argc, l
                }
                ret = 0;
 
-       } else if (!strncmp (path, "/link/set", 9)) {
+       } else if (!strncmp (path, X_("/link/set"), 9)) {
                ret = set_link (set, (uint32_t) data, get_address (msg));
        }
 
@@ -1514,6 +1597,7 @@ OSC::get_linkset (uint32_t set, lo_address addr)
                        new_ls.strips = sur->strips;
                        new_ls.custom_strips = sur->custom_strips;
                        new_ls.custom_mode = sur->custom_mode;
+                       new_ls.temp_mode = sur->temp_mode;
                        new_ls.urls.resize (2);
                        link_sets[set] = new_ls;
                }
@@ -1573,6 +1657,7 @@ OSC::link_strip_types (uint32_t linkset, uint32_t striptypes)
        }
        ls = &link_sets[linkset];
        ls->strip_types = striptypes;
+       ls->temp_mode = TempOff;
        for (uint32_t dv = 1; dv < ls->urls.size(); dv++) {
                OSCSurface *su;
 
@@ -1663,64 +1748,78 @@ OSC::surface_parse (const char *path, const char* types, lo_arg **argv, int argc
        int bank_size = sur->bank_size;
        int linkset = sur->linkset;
        int linkid = sur->linkid;
+       string host = lo_url_get_hostname(sur->remote_url.c_str());
+       int port = atoi (get_port (host).c_str());
 
-
-       if (argc == 1 && !strncmp (path, "/set_surface/feedback", 21)) {
+       if (argc == 1 && !strncmp (path, X_("/set_surface/feedback"), 21)) {
                if (types[0] == 'f') {
                        ret = set_surface_feedback ((int)argv[0]->f, msg);
                } else {
                        ret = set_surface_feedback (argv[0]->i, msg);
                }
        }
-       else if (argc == 1 && !strncmp (path, "/set_surface/bank_size", 22)) {
+       else if (argc == 1 && !strncmp (path, X_("/set_surface/bank_size"), 22)) {
                if (types[0] == 'f') {
                        ret = set_surface_bank_size ((int)argv[0]->f, msg);
                } else {
                        ret = set_surface_bank_size (argv[0]->i, msg);
                }
        }
-       else if (argc == 1 && !strncmp (path, "/set_surface/gainmode", 21)) {
+       else if (argc == 1 && !strncmp (path, X_("/set_surface/gainmode"), 21)) {
                if (types[0] == 'f') {
                        ret = set_surface_gainmode ((int)argv[0]->f, msg);
                } else {
                        ret = set_surface_gainmode (argv[0]->i, msg);
                }
        }
-       else if (argc == 1 && !strncmp (path, "/set_surface/strip_types", 24)) {
+       else if (argc == 1 && !strncmp (path, X_("/set_surface/strip_types"), 24)) {
                if (types[0] == 'f') {
                        ret = set_surface_strip_types ((int)argv[0]->f, msg);
                } else {
                        ret = set_surface_strip_types (argv[0]->i, msg);
                }
        }
-       else if (argc == 1 && !strncmp (path, "/set_surface/send_page_size", 27)) {
+       else if (argc == 1 && !strncmp (path, X_("/set_surface/send_page_size"), 27)) {
                if (types[0] == 'f') {
                        ret = sel_send_pagesize ((int)argv[0]->f, msg);
                } else {
                        ret = sel_send_pagesize (argv[0]->i, msg);
                }
        }
-       else if (argc == 1 && !strncmp (path, "/set_surface/plugin_page_size", 29)) {
+       else if (argc == 1 && !strncmp (path, X_("/set_surface/plugin_page_size"), 29)) {
                if (types[0] == 'f') {
                        ret = sel_plug_pagesize ((int)argv[0]->f, msg);
                } else {
                        ret = sel_plug_pagesize (argv[0]->i, msg);
                }
+       }
+       else if (argc == 1 && !strncmp (path, X_("/set_surface/port"), 17)) {
+               if (types[0] == 'f') {
+                       ret = set_surface_port ((int)argv[0]->f, msg);
+               } else {
+                       ret = set_surface_port (argv[0]->i, msg);
+               }
        } else if (strlen(path) == 12) {
 
                // command is in /set_surface iii form
                switch (argc) {
+                       case 9:
+                               if (types[8] == 'f') {
+                                       linkid = (int) argv[8]->f;
+                               } else {
+                                       linkid = argv[8]->i;
+                               }
                        case 8:
                                if (types[7] == 'f') {
-                                       linkid = (int) argv[7]->f;
+                                       linkset = (int) argv[7]->f;
                                } else {
-                                       linkid = argv[7]->i;
+                                       linkset = argv[7]->i;
                                }
                        case 7:
                                if (types[6] == 'f') {
-                                       linkset = (int) argv[6]->f;
+                                       port = (int) argv[6]->f;
                                } else {
-                                       linkset = argv[6]->i;
+                                       port = argv[6]->i;
                                }
                        case 6:
                                if (types[5] == 'f') {
@@ -1746,6 +1845,7 @@ OSC::surface_parse (const char *path, const char* types, lo_arg **argv, int argc
                                } else {
                                        feedback = argv[2]->i;
                                }
+                               // [[fallthrough]]; old compiler doesn't like
                        case 2:
                                if (types[1] == 'f') {
                                        strip_types = (int) argv[1]->f;
@@ -1758,6 +1858,7 @@ OSC::surface_parse (const char *path, const char* types, lo_arg **argv, int argc
                                } else {
                                        bank_size = argv[0]->i;
                                }
+                               set_surface_port (port, msg);
                                ret = set_surface (bank_size, strip_types, feedback, fadermode, se_page, pi_page, msg);
                                if ((uint32_t) linkset != sur->linkset) {
                                        set_link (linkset, linkid, get_address (msg));
@@ -1775,7 +1876,8 @@ OSC::surface_parse (const char *path, const char* types, lo_arg **argv, int argc
                                        lo_message_add_int32 (reply, pi_page);
                                        lo_message_add_int32 (reply, (int) linkset);
                                        lo_message_add_int32 (reply, (int) linkid);
-                                       lo_send_message (get_address (msg), "/set_surface", reply);
+                                       lo_message_add_int32 (reply, (int) port);
+                                       lo_send_message (get_address (msg), X_("/set_surface"), reply);
                                        lo_message_free (reply);
                                        return 0;
                                }
@@ -1804,24 +1906,34 @@ OSC::surface_parse (const char *path, const char* types, lo_arg **argv, int argc
                                                const char * pp = strstr (&sp[1], "/");
                                                if (pp) {
                                                        pi_page = atoi (&pp[1]);
-                                                       const char * ls = strstr (&pp[1], "/");
-                                                       if (ls) {
-                                                               linkset = atoi (&ls[1]);
-                                                               const char * li = strstr (&ls[1], "/");
-                                                               if (li) {
-                                                                       linkid = atoi (&li[1]);
+                                                       const char * po = strstr (&pp[1], "/");
+                                                       if (po) {
+                                                               port = atoi (&po[1]);
+                                                               const char * ls = strstr (&po[1], "/");
+                                                               if (ls) {
+                                                                       linkset = atoi (&ls[1]);
+                                                                       const char * li = strstr (&ls[1], "/");
+                                                                       if (li) {
+                                                                               linkid = atoi (&li[1]);
+                                                                       } else {
+                                                                               if (types[0] == 'f') {
+                                                                                       linkid = (int) argv[0]->f;
+                                                                               } else if (types[0] == 'i') {
+                                                                                       linkid = argv[0]->i;
+                                                                               }
+                                                                       }
                                                                } else {
                                                                        if (types[0] == 'f') {
-                                                                               linkid = (int) argv[0]->f;
+                                                                               linkset = (int) argv[0]->f;
                                                                        } else if (types[0] == 'i') {
-                                                                               linkid = argv[0]->i;
+                                                                               linkset = argv[0]->i;
                                                                        }
                                                                }
                                                        } else {
                                                                if (types[0] == 'f') {
-                                                                       linkset = (int) argv[0]->f;
+                                                                       port = (int) argv[0]->f;
                                                                } else if (types[0] == 'i') {
-                                                                       linkset = argv[0]->i;
+                                                                       port = argv[0]->i;
                                                                }
                                                        }
                                                } else {
@@ -1859,6 +1971,7 @@ OSC::surface_parse (const char *path, const char* types, lo_arg **argv, int argc
                                strip_types = argv[0]->i;
                        }
                }
+               set_surface_port (port, msg);
                ret = set_surface (bank_size, strip_types, feedback, fadermode, se_page, pi_page, msg);
                if ((uint32_t) linkset != sur->linkset) {
                        set_link (linkset, linkid, get_address (msg));
@@ -1875,9 +1988,6 @@ OSC::set_surface (uint32_t b_size, uint32_t strips, uint32_t fb, uint32_t gm, ui
        }
        OSCSurface *s = get_surface(get_address (msg), true);
        s->bank_size = b_size;
-       if (s->custom_mode && b_size) {
-               s->custom_mode = s->custom_mode | 0x4;
-       }
        s->strip_types = strips;
        s->feedback = fb;
        s->gainmode = gm;
@@ -1888,6 +1998,9 @@ OSC::set_surface (uint32_t b_size, uint32_t strips, uint32_t fb, uint32_t gm, ui
        }
        s->send_page_size = se_size;
        s->plug_page_size = pi_size;
+       if (s->temp_mode) {
+               s->temp_mode = TempOff;
+       }
        if (s->linkset) {
                set_link (s->linkset, s->linkid, get_address (msg));
                link_strip_types (s->linkset, s->strip_types.to_ulong());
@@ -1895,6 +2008,7 @@ OSC::set_surface (uint32_t b_size, uint32_t strips, uint32_t fb, uint32_t gm, ui
                // set bank and strip feedback
                strip_feedback(s, true);
                _set_bank (1, get_address (msg));
+               _strip_select (boost::shared_ptr<Stripable> (), get_address (msg));
        }
 
        global_feedback (s);
@@ -1931,6 +2045,7 @@ OSC::set_surface_strip_types (uint32_t st, lo_message msg)
        }
        OSCSurface *s = get_surface(get_address (msg), true);
        s->strip_types = st;
+       s->temp_mode = TempOff;
        if (s->strip_types[10]) {
                s->usegroup = PBD::Controllable::UseGroup;
        } else {
@@ -1939,9 +2054,10 @@ OSC::set_surface_strip_types (uint32_t st, lo_message msg)
        if (s->linkset) {
                link_strip_types (s->linkset, st);
        }
-
        // set bank and strip feedback
-       _set_bank (1, get_address (msg));
+       strip_feedback(s, false);
+       set_bank (1, msg);
+       _strip_select (boost::shared_ptr<Stripable> (), get_address (msg));
        return 0;
 }
 
@@ -1976,6 +2092,64 @@ OSC::set_surface_gainmode (uint32_t gm, lo_message msg)
        return 0;
 }
 
+int
+OSC::set_surface_port (uint32_t po, lo_message msg)
+{
+       string new_port;
+       if (!po) {
+               new_port = "auto";
+       } else if (po > 1024) {
+               new_port = string_compose ("%1", po);
+       } else {
+               PBD::warning << "Port value must be greater than 1024" << endmsg;
+               return -1;
+       }
+       OSCSurface *sur = get_surface(get_address (msg), true);
+       lo_address addr = lo_message_get_source (msg);
+       string host = lo_address_get_hostname (addr);
+       string port = lo_address_get_port (addr);
+       int protocol = lo_address_get_protocol (addr);
+       for (uint32_t i = 0; i < _ports.size (); i++) {
+               if (_ports[i].host == host) {
+                       if (_ports[i].port == new_port) {
+                               // no change - do nothing
+                               return 0;
+                       } else {
+                               lo_address new_addr;
+                               _ports[i].port = new_port;
+                               if (new_port == "auto") {
+                                       new_addr = addr;
+                               } else {
+                                       new_addr = lo_address_new_with_proto (protocol, host.c_str(), new_port.c_str());
+                               }
+                               char * rurl;
+                               rurl = lo_address_get_url (new_addr);
+                               sur->remote_url = rurl;
+                               free (rurl);
+                               for (uint32_t it = 0; it < _surface.size();) {
+                                       if (&_surface[it] == sur) {
+                                               it++;
+                                               continue;
+                                       }
+                                       char *sur_host = lo_url_get_hostname(_surface[it].remote_url.c_str());
+                                       if (strstr (sur_host, host.c_str())) {
+                                               surface_destroy (&_surface[it]);
+                                               _surface.erase (_surface.begin() + it);
+                                       } else {
+                                               it++;
+                                       }
+                               }
+                               if (sur->feedback.to_ulong()) {
+                                       refresh_surface (msg);
+                               }
+                               return 0;
+                       }
+               }
+       }
+       // should not get here
+       return -1;
+}
+
 int
 OSC::check_surface (lo_message msg)
 {
@@ -1991,21 +2165,13 @@ OSC::get_surface (lo_address addr , bool quiet)
 {
        string r_url;
        char * rurl;
-       if (address_only) {
-               string host = lo_address_get_hostname (addr);
-               int protocol = lo_address_get_protocol (addr);
-               addr = lo_address_new_with_proto (protocol, host.c_str(), remote_port.c_str());
-       }
-
        rurl = lo_address_get_url (addr);
        r_url = rurl;
        free (rurl);
-       {
-               for (uint32_t it = 0; it < _surface.size(); ++it) {
-                       //find setup for this surface
-                       if (!_surface[it].remote_url.find(r_url)){
-                               return &_surface[it];
-                       }
+       for (uint32_t it = 0; it < _surface.size(); ++it) {
+               //find setup for this surface
+               if (!_surface[it].remote_url.find(r_url)){
+                       return &_surface[it];
                }
        }
 
@@ -2013,7 +2179,7 @@ OSC::get_surface (lo_address addr , bool quiet)
        OSCSurface s;
        s.remote_url = r_url;
        s.no_clear = false;
-       s.jogmode = JOG;
+       s.jogmode = 0;
        s.bank = 1;
        s.bank_size = default_banksize;
        s.observers.clear();
@@ -2025,9 +2191,11 @@ OSC::get_surface (lo_address addr , bool quiet)
        s.usegroup = PBD::Controllable::NoGroup;
        s.custom_strips.clear ();
        s.custom_mode = 0;
+       s.temp_mode = TempOff;
        s.sel_obs = 0;
        s.expand = 0;
        s.expand_enable = false;
+       s.expand_strip = boost::shared_ptr<Stripable> ();
        s.cue = false;
        s.aux = 0;
        s.cue_obs = 0;
@@ -2059,12 +2227,15 @@ void
 OSC::global_feedback (OSCSurface* sur)
 {
        OSCGlobalObserver* o = sur->global_obs;
-       delete o;
+       if (o) {
+               delete o;
+       }
        if (sur->feedback[4] || sur->feedback[3] || sur->feedback[5] || sur->feedback[6]) {
 
                // create a new Global Observer for this surface
                OSCGlobalObserver* o = new OSCGlobalObserver (*this, *session, sur);
                sur->global_obs = o;
+               o->jog_mode (sur->jogmode);
        }
 }
 
@@ -2081,11 +2252,15 @@ OSC::strip_feedback (OSCSurface* sur, bool new_bank_size)
                }
                sur->custom_mode = set->custom_mode;
                sur->custom_strips = set->custom_strips;
+               sur->temp_mode = set->temp_mode;
+               sur->temp_strips = set->temp_strips;
+               sur->temp_master = set->temp_master;
        }
-       if (sur->custom_strips.size () == 0) {
-               sur->custom_mode = 0;
+       if (!sur->temp_mode) {
+               sur->strips = get_sorted_stripables(sur->strip_types, sur->cue, sur->custom_mode, sur->custom_strips);
+       } else {
+               sur->strips = get_sorted_stripables(sur->strip_types, sur->cue, 1, sur->temp_strips);
        }
-       sur->strips = get_sorted_stripables(sur->strip_types, sur->cue, sur->custom_mode, sur->custom_strips);
        sur->nstrips = sur->strips.size();
        if (ls) {
                set->strips = sur->strips;
@@ -2110,6 +2285,14 @@ OSC::strip_feedback (OSCSurface* sur, bool new_bank_size)
                        for (uint32_t i = 0; i < bank_size; i++) {
                                OSCRouteObserver* o = new OSCRouteObserver (*this, i + 1, sur);
                                sur->observers.push_back (o);
+                               if (sur->temp_mode == BusOnly) {
+                                       boost::shared_ptr<ARDOUR::Stripable> str = get_strip (i + 1, lo_address_new_from_url (sur->remote_url.c_str()));
+                                       boost::shared_ptr<ARDOUR::Send> send = get_send (str, lo_address_new_from_url (sur->remote_url.c_str()));
+                                       if (send) {
+                                               o->refresh_send (send, true);
+                                       }
+                               }
+
                        }
                }
        } else {
@@ -2117,6 +2300,12 @@ OSC::strip_feedback (OSCSurface* sur, bool new_bank_size)
                        for (uint32_t i = 0; i < sur->observers.size(); i++) {
                                boost::shared_ptr<ARDOUR::Stripable> str = get_strip (i + 1, lo_address_new_from_url (sur->remote_url.c_str()));
                                sur->observers[i]->refresh_strip(str, true);
+                               if (sur->temp_mode == BusOnly) {
+                                       boost::shared_ptr<ARDOUR::Send> send = get_send (str, lo_address_new_from_url (sur->remote_url.c_str()));
+                                       if (send) {
+                                               sur->observers[i]->refresh_send (send, true);
+                                       }
+                               }
                        }
                }
        }
@@ -2175,7 +2364,7 @@ OSC::_recalcbanks ()
                        // This surface uses /strip/list tell it routes have changed
                        lo_message reply;
                        reply = lo_message_new ();
-                       lo_send_message (addr, "/strip/list", reply);
+                       lo_send_message (addr, X_("/strip/list"), reply);
                        lo_message_free (reply);
                } else {
                        strip_feedback (sur, false);
@@ -2221,17 +2410,25 @@ OSC::_set_bank (uint32_t bank_start, lo_address addr)
                set->bank = bank_start;
                uint32_t not_ready = 0;
                for (uint32_t dv = 1; dv < d_count; dv++) {
-                       OSCSurface *sur;
                        if (set->urls[dv] != "") {
                                string url = set->urls[dv];
-                               sur = get_surface (lo_address_new_from_url (url.c_str()));
+                               OSCSurface *sur = get_surface (lo_address_new_from_url (url.c_str()));
+                               if (sur->linkset != ls) {
+                                       set->urls[dv] = "";
+                                       not_ready = dv;
+                               } else {
+                                       lo_address sur_addr = lo_address_new_from_url (sur->remote_url.c_str());
+
+                                       sur->bank = bank_start;
+                                       bank_start = bank_start + sur->bank_size;
+                                       strip_feedback (sur, false);
+                                       _strip_select (boost::shared_ptr<ARDOUR::Stripable>(), sur_addr);
+                                       bank_leds (sur);
+                                       lo_address_free (sur_addr);
+                               }
                        } else {
                                not_ready = dv;
                        }
-                       if (sur->linkset != ls) {
-                               set->urls[dv] = "";
-                               not_ready = dv;
-                       }
                        if (not_ready) {
                                if (!set->not_ready) {
                                        set->not_ready = not_ready;
@@ -2239,14 +2436,6 @@ OSC::_set_bank (uint32_t bank_start, lo_address addr)
                                set->bank = 1;
                                break;
                        }
-                       lo_address sur_addr = lo_address_new_from_url (sur->remote_url.c_str());
-
-                       sur->bank = bank_start;
-                       bank_start = bank_start + sur->bank_size;
-                       strip_feedback (sur, false);
-                       _strip_select (boost::shared_ptr<ARDOUR::Stripable>(), sur_addr);
-                       bank_leds (sur);
-                       lo_address_free (sur_addr);
                }
                if (not_ready) {
                        surface_link_state (set);
@@ -2317,7 +2506,7 @@ OSC::bank_leds (OSCSurface* s)
                } else {
                        lo_message_add_int32 (reply, 1);
                }
-               lo_send_message (addr, "/bank_up", reply);
+               lo_send_message (addr, X_("/bank_up"), reply);
                lo_message_free (reply);
                reply = lo_message_new ();
                if (bank > 1) {
@@ -2325,7 +2514,7 @@ OSC::bank_leds (OSCSurface* s)
                } else {
                        lo_message_add_int32 (reply, 0);
                }
-               lo_send_message (addr, "/bank_down", reply);
+               lo_send_message (addr, X_("/bank_down"), reply);
                lo_message_free (reply);
        }
 }
@@ -2396,6 +2585,362 @@ OSC::use_group (float value, lo_message msg)
        return 0;
 }
 
+// this gets called for anything that starts with /select/group
+int
+OSC::parse_sel_group (const char *path, const char* types, lo_arg **argv, int argc, lo_message msg)
+{
+       OSCSurface *sur = get_surface(get_address (msg));
+       boost::shared_ptr<Stripable> s = sur->select;
+       int ret = 1; /* unhandled */
+       if (s) {
+               if (!strncmp (path, X_("/select/group"), 13)) {
+                       if (argc == 1) {
+                               if (types[0] == 's') {
+                                       return strip_select_group (s, &argv[0]->s);
+                               }
+                       }
+               }
+               boost::shared_ptr<Route> rt = boost::dynamic_pointer_cast<Route> (s);
+               if (!rt) {
+                       PBD::warning << "OSC: VCAs can not be part of a group." << endmsg;
+                       return ret;
+               }
+               RouteGroup *rg = rt->route_group();
+               if (!rg) {
+                       PBD::warning << "OSC: This strip is not part of a group." << endmsg;
+               }
+               float value = 0;
+               if (argc == 1) {
+                       if (types[0] == 'f') {
+                               value = (uint32_t) argv[0]->f;
+                       } else if (types[0] == 'i') {
+                               value = (uint32_t) argv[0]->i;
+                       }
+               }
+               if (!strncmp (path, X_("/select/group/enable"), 20)) {
+                       if (rg) {
+                               if (argc == 1) {
+                                       rg->set_active (value, this);
+                                       ret = 0;
+                               }
+                       } else {
+                               int_message (X_("/select/group/enable"), 0, get_address (msg));
+                       }
+               }
+               else if (strcmp (path, X_("/select/group/gain")) == 0) {
+                       if (rg) {
+                               if (argc == 1) {
+                                       rg->set_gain ((bool) value);
+                                       ret = 0;
+                               }
+                       } else {
+                               int_message (X_("/select/group/gain"), 0, get_address (msg));
+                       }
+               }
+               else if (strcmp (path, X_("/select/group/relative")) == 0) {
+                       if (rg) {
+                               if (argc == 1) {
+                                       rg->set_relative ((bool) value, this);
+                                       ret = 0;
+                               }
+                       } else {
+                               int_message (X_("/select/group/relative"), 0, get_address (msg));
+                       }
+               }
+               else if (strcmp (path, X_("/select/group/mute")) == 0) {
+                       if (rg) {
+                               if (argc == 1) {
+                                       rg->set_mute ((bool) value);
+                                       ret = 0;
+                               }
+                       } else {
+                               int_message (X_("/select/group/mute"), 0, get_address (msg));
+                       }
+               }
+               else if (strcmp (path, X_("/select/group/solo")) == 0) {
+                       if (rg) {
+                               if (argc == 1) {
+                                       rg->set_solo ((bool) value);
+                                       ret = 0;
+                               }
+                       } else {
+                               int_message (X_("/select/group/solo"), 0, get_address (msg));
+                       }
+               }
+               else if (strcmp (path, X_("/select/group/recenable")) == 0) {
+                       if (rg) {
+                               if (argc == 1) {
+                                       rg->set_recenable ((bool) value);
+                                       ret = 0;
+                               }
+                       } else {
+                               int_message (X_("/select/group/recenable"), 0, get_address (msg));
+                       }
+               }
+               else if (strcmp (path, X_("/select/group/select")) == 0) {
+                       if (rg) {
+                               if (argc == 1) {
+                                       rg->set_select ((bool) value);
+                                       ret = 0;
+                               }
+                       } else {
+                               int_message (X_("/select/group/select"), 0, get_address (msg));
+                       }
+               }
+               else if (strcmp (path, X_("/select/group/active")) == 0) {
+                       if (rg) {
+                               if (argc == 1) {
+                                       rg->set_route_active ((bool) value);
+                                       ret = 0;
+                               }
+                       } else {
+                               int_message (X_("/select/group/active"), 0, get_address (msg));
+                       }
+               }
+               else if (strcmp (path, X_("/select/group/color")) == 0) {
+                       if (rg) {
+                               if (argc == 1) {
+                                       rg->set_color ((bool) value);
+                                       ret = 0;
+                               }
+                       } else {
+                               int_message (X_("/select/group/color"), 0, get_address (msg));
+                       }
+               }
+               else if (strcmp (path, X_("/select/group/monitoring")) == 0) {
+                       if (rg) {
+                               if (argc == 1) {
+                                       rg->set_monitoring ((bool) value);
+                                       ret = 0;
+                               }
+                       } else {
+                               int_message (X_("/select/group/monitoring"), 0, get_address (msg));
+                       }
+               }
+       }
+       return ret;
+ }
+
+// this gets called for anything that starts with /select/vca
+int
+OSC::parse_sel_vca (const char *path, const char* types, lo_arg **argv, int argc, lo_message msg)
+{
+       OSCSurface *sur = get_surface(get_address (msg));
+       boost::shared_ptr<Stripable> s;
+       s = sur->select;
+       int ret = 1; /* unhandled */
+       if (s) {
+               boost::shared_ptr<Slavable> slv = boost::dynamic_pointer_cast<Slavable> (s);
+               string svalue = "";
+               uint32_t ivalue = 1024;
+               if (strcmp (path, X_("/select/vca")) == 0) {
+                       if (argc == 2) {
+                               if (types[0] == 's') {
+                                       svalue = &argv[0]->s;
+                                       if (types[1] == 'i') {
+                                               ivalue = argv[1]->i;
+                                       } else if (types[1] == 'f') {
+                                               ivalue = (uint32_t) argv[1]->f;
+                                       } else {
+                                               return 1;
+                                       }
+                                       boost::shared_ptr<VCA> vca = get_vca_by_name (svalue);
+                                       if (vca) {
+                                               if (ivalue) {
+                                                       slv->assign (vca);
+                                               } else {
+                                                       slv->unassign (vca);
+                                               }
+                                               ret = 0;
+                                       }
+                               }
+                       } else {
+                               PBD::warning << "OSC: setting a vca needs both the vca name and it's state" << endmsg;
+                       }
+               }
+               else if (!strncmp (path, X_("/select/vca/toggle"), 18)) {
+                       if (argc == 1) {
+                               if (types[0] == 's') {
+                                       svalue = &argv[0]->s;
+                                       string v_name = svalue.substr (0, svalue.rfind (" ["));
+                                       boost::shared_ptr<VCA> vca = get_vca_by_name (v_name);
+                                       if (s->slaved_to (vca)) {
+                                               slv->unassign (vca);
+                                       } else {
+                                               slv->assign (vca);
+                                       }
+                                       ret = 0;
+                               } else {
+                                       PBD::warning << "OSC: toggling needs the vca name as a string" << endmsg;
+                               }
+                       } else {
+                               PBD::warning << "OSC: toggling a vca needs the vca name" << endmsg;
+                       }
+
+               }
+       }
+       return ret;
+}
+
+boost::shared_ptr<VCA>
+OSC::get_vca_by_name (std::string vname)
+{
+       StripableList stripables;
+       session->get_stripables (stripables);
+       for (StripableList::iterator it = stripables.begin(); it != stripables.end(); ++it) {
+               boost::shared_ptr<Stripable> s = *it;
+               boost::shared_ptr<VCA> v = boost::dynamic_pointer_cast<VCA> (s);
+               if (v) {
+                       if (vname == v->name()) {
+                               return v;
+                       }
+               }
+       }
+       return boost::shared_ptr<VCA>();
+}
+
+int
+OSC::set_temp_mode (lo_address addr)
+{
+       bool ret = 1;
+       OSCSurface *sur = get_surface(addr);
+       boost::shared_ptr<Stripable> s = sur->temp_master;
+       if (s) {
+               if (sur->temp_mode == GroupOnly) {
+                       boost::shared_ptr<Route> rt = boost::dynamic_pointer_cast<Route> (s);
+                       if (rt) {
+                               RouteGroup *rg = rt->route_group();
+                               if (rg) {
+                                       sur->temp_strips.clear();
+                                       boost::shared_ptr<RouteList> rl = rg->route_list();
+                                       for (RouteList::iterator it = rl->begin(); it != rl->end(); ++it) {
+                                               boost::shared_ptr<Route> r = *it;
+                                               boost::shared_ptr<Stripable> st = boost::dynamic_pointer_cast<Stripable> (r);
+                                               sur->temp_strips.push_back(st);
+                                       }
+                                       // check if this group feeds a bus or is slaved
+                                       boost::shared_ptr<Stripable> mstr = boost::shared_ptr<Stripable> ();
+                                       if (rg->has_control_master()) {
+                                               boost::shared_ptr<VCA> vca = session->vca_manager().vca_by_number (rg->group_master_number());
+                                               if (vca) {
+                                                       mstr = boost::dynamic_pointer_cast<Stripable> (vca);
+                                               }
+                                       } else if (rg->has_subgroup()) {
+                                               boost::shared_ptr<Route> sgr = rg->subgroup_bus().lock();
+                                               if (sgr) {
+                                                       mstr = boost::dynamic_pointer_cast<Stripable> (sgr);
+                                               }
+                                       }
+                                       if (mstr) {
+                                               sur->temp_strips.push_back(mstr);
+                                       }
+                                       sur->strips = get_sorted_stripables(sur->strip_types, sur->cue, 1, sur->temp_strips);
+                                       sur->nstrips = sur->temp_strips.size();
+                                       ret = 0;
+                               }
+                       }
+               } else if (sur->temp_mode == VCAOnly) {
+                       boost::shared_ptr<VCA> vca = boost::dynamic_pointer_cast<VCA> (s);
+                       if (vca) {
+                               sur->temp_strips.clear();
+                               StripableList stripables;
+                               session->get_stripables (stripables);
+                               for (StripableList::iterator it = stripables.begin(); it != stripables.end(); ++it) {
+                                       boost::shared_ptr<Stripable> st = *it;
+                                       if (st->slaved_to (vca)) {
+                                               sur->temp_strips.push_back(st);
+                                       }
+                               }
+                               sur->temp_strips.push_back(s);
+                               sur->strips = get_sorted_stripables(sur->strip_types, sur->cue, 1, sur->temp_strips);
+                               sur->nstrips = sur->temp_strips.size();
+                               ret = 0;
+                       }
+               } else if (sur->temp_mode == BusOnly) {
+                       boost::shared_ptr<Route> rt = boost::dynamic_pointer_cast<Route> (s);
+                       if (rt) {
+                               if (!rt->is_track () && rt->can_solo ()) {
+                                       // this is a bus, but not master, monitor or audition
+                                       sur->temp_strips.clear();
+                                       StripableList stripables;
+                                       session->get_stripables (stripables, PresentationInfo::AllStripables);
+                                       for (StripableList::iterator it = stripables.begin(); it != stripables.end(); ++it) {
+                                               boost::shared_ptr<Stripable> st = *it;
+                                               boost::shared_ptr<Route> ri = boost::dynamic_pointer_cast<Route> (st);
+                                               bool sends = true;
+                                               if (ri && ri->direct_feeds_according_to_graph (rt, &sends)) {
+                                                       sur->temp_strips.push_back(st);
+                                               }
+                                       }
+                                       sur->temp_strips.push_back(s);
+                                       sur->strips = get_sorted_stripables(sur->strip_types, sur->cue, 1, sur->temp_strips);
+                                       sur->nstrips = sur->temp_strips.size();
+                                       ret = 0;
+                               }
+                       }
+               } else if (sur->temp_mode == TempOff) {
+                       sur->temp_mode = TempOff;
+                       ret = 0;
+               }
+       }
+       LinkSet *set;
+       uint32_t ls = sur->linkset;
+       if (ls) {
+               set = &(link_sets[ls]);
+               set->temp_mode = sur->temp_mode;
+               set->temp_strips.clear ();
+               set->temp_strips = sur->temp_strips;
+               set->temp_master = sur->temp_master;
+               set->strips = sur->strips;
+       }
+       if (ret) {
+               sur->temp_mode = TempOff;
+       }
+       return ret;
+}
+
+boost::shared_ptr<Send>
+OSC::get_send (boost::shared_ptr<Stripable> st, lo_address addr)
+{
+       OSCSurface *sur = get_surface(addr);
+       boost::shared_ptr<Stripable> s = sur->temp_master;
+       if (st && s && (st != s)) {
+               boost::shared_ptr<Route> rt = boost::dynamic_pointer_cast<Route> (s);
+               boost::shared_ptr<Route> rst = boost::dynamic_pointer_cast<Route> (st);
+               //find what send number feeds s
+               return rst->internal_send_for (rt);
+       }
+       return boost::shared_ptr<Send> ();
+}
+
+int
+OSC::name_session (char *n, lo_message msg)
+{
+       if (!session) {
+               return -1;
+       }
+       string new_name = n;
+       char illegal = Session::session_name_is_legal (new_name);
+
+       if (illegal) {
+               PBD::warning  << (string_compose (_("To ensure compatibility with various systems\n"
+                                   "session names may not contain a '%1' character"), illegal)) << endmsg;
+               return -1;
+       }
+       switch (session->rename (new_name)) {
+               case -1:
+                       PBD::warning  << (_("That name is already in use by another directory/folder. Please try again.")) << endmsg;
+                       break;
+               case 0:
+                       return 0;
+                       break;
+               default:
+                       PBD::warning  << (_("Renaming this session failed.\nThings could be seriously messed up at this point")) << endmsg;
+                       break;
+       }
+       return -1;
+}
+
 uint32_t
 OSC::get_sid (boost::shared_ptr<ARDOUR::Stripable> strip, lo_address addr)
 {
@@ -2420,7 +2965,7 @@ OSC::get_sid (boost::shared_ptr<ARDOUR::Stripable> strip, lo_address addr)
                        }
                }
        }
-       // failsafe... should never get here.
+       // strip not in current bank
        return 0;
 }
 
@@ -2571,7 +3116,7 @@ OSC::_sel_plugin (int id, lo_address addr)
                boost::shared_ptr<Processor> proc = r->nth_plugin (sur->plugins[sur->plugin_id - 1]);
                boost::shared_ptr<PluginInsert> pi;
                if (!(pi = boost::dynamic_pointer_cast<PluginInsert>(proc))) {
-                       PBD::warning << "OSC: Plugin: " << sur->plugin_id << " does not seem to be a plugin" << endmsg;                 
+                       PBD::warning << "OSC: Plugin: " << sur->plugin_id << " does not seem to be a plugin" << endmsg;
                        return 1;
                }
                boost::shared_ptr<ARDOUR::Plugin> pip = pi->plugin();
@@ -2611,7 +3156,7 @@ OSC::transport_sample (lo_message msg)
        lo_message reply = lo_message_new ();
        lo_message_add_int64 (reply, pos);
 
-       lo_send_message (get_address (msg), "/transport_frame", reply);
+       lo_send_message (get_address (msg), X_("/transport_frame"), reply);
 
        lo_message_free (reply);
 }
@@ -2628,7 +3173,7 @@ OSC::transport_speed (lo_message msg)
        lo_message reply = lo_message_new ();
        lo_message_add_double (reply, ts);
 
-       lo_send_message (get_address (msg), "/transport_speed", reply);
+       lo_send_message (get_address (msg), X_("/transport_speed"), reply);
 
        lo_message_free (reply);
 }
@@ -2645,7 +3190,7 @@ OSC::record_enabled (lo_message msg)
        lo_message reply = lo_message_new ();
        lo_message_add_int32 (reply, re);
 
-       lo_send_message (get_address (msg), "/record_enabled", reply);
+       lo_send_message (get_address (msg), X_("/record_enabled"), reply);
 
        lo_message_free (reply);
 }
@@ -2704,21 +3249,24 @@ OSC::jog (float delta, lo_message msg)
 
        OSCSurface *s = get_surface(get_address (msg));
 
-       string path = "/jog/mode/name";
        switch(s->jogmode)
        {
-               case JOG  :
-                       text_message (path, "Jog", get_address (msg));
+               case 0:
                        if (delta) {
                                jump_by_seconds (delta / 5);
                        }
                        break;
-               case SCRUB:
-                       text_message (path, "Scrub", get_address (msg));
+               case 1:
+                       if (delta > 0) {
+                               access_action ("Common/nudge-playhead-forward");
+                       } else if (delta < 0) {
+                               access_action ("Common/nudge-playhead-backward");
+                       }
+                       break;
+               case 2:
                        scrub (delta, msg);
                        break;
-               case SHUTTLE:
-                       text_message (path, "Shuttle", get_address (msg));
+               case 3:
                        if (delta) {
                                double speed = get_transport_speed ();
                                set_transport_speed (speed + (delta / 8.1));
@@ -2726,46 +3274,34 @@ OSC::jog (float delta, lo_message msg)
                                set_transport_speed (0);
                        }
                        break;
-               case SCROLL:
-                       text_message (path, "Scroll", get_address (msg));
+               case 4:
+                       if (delta > 0) {
+                               next_marker ();
+                       } else if (delta < 0) {
+                               prev_marker ();
+                       }
+                       break;
+               case 5:
                        if (delta > 0) {
                                access_action ("Editor/scroll-forward");
                        } else if (delta < 0) {
                                access_action ("Editor/scroll-backward");
                        }
                        break;
-               case TRACK:
-                       text_message (path, "Track", get_address (msg));
+               case 6:
                        if (delta > 0) {
                                set_bank (s->bank + 1, msg);
                        } else if (delta < 0) {
                                set_bank (s->bank - 1, msg);
                        }
                        break;
-               case BANK:
-                       text_message (path, "Bank", get_address (msg));
+               case 7:
                        if (delta > 0) {
                                bank_up (msg);
                        } else if (delta < 0) {
                                bank_down (msg);
                        }
                        break;
-               case NUDGE:
-                       text_message (path, "Nudge", get_address (msg));
-                       if (delta > 0) {
-                               access_action ("Common/nudge-playhead-forward");
-                       } else if (delta < 0) {
-                               access_action ("Common/nudge-playhead-backward");
-                       }
-                       break;
-               case MARKER:
-                       text_message (path, "Marker", get_address (msg));
-                       if (delta > 0) {
-                               next_marker ();
-                       } else if (delta < 0) {
-                               prev_marker ();
-                       }
-                       break;
                default:
                        break;
 
@@ -2783,52 +3319,9 @@ OSC::jog_mode (float mode, lo_message msg)
        if (get_transport_speed () != 1.0) {
                set_transport_speed (0);
        }
-
-       switch((uint32_t)mode)
-       {
-               case JOG  :
-                       text_message ("/jog/mode/name", "Jog", get_address (msg));
-                       s->jogmode = JOG;
-                       break;
-               case SCRUB:
-                       text_message ("/jog/mode/name", "Scrub", get_address (msg));
-                       s->jogmode = SCRUB;
-                       break;
-               case SHUTTLE:
-                       text_message ("/jog/mode/name", "Shuttle", get_address (msg));
-                       s->jogmode = SHUTTLE;
-                       break;
-               case SCROLL:
-                       text_message ("/jog/mode/name", "Scroll", get_address (msg));
-                       s->jogmode = SCROLL;
-                       break;
-               case TRACK:
-                       text_message ("/jog/mode/name", "Track", get_address (msg));
-                       s->jogmode = TRACK;
-                       break;
-               case BANK:
-                       text_message ("/jog/mode/name", "Bank", get_address (msg));
-                       s->jogmode = BANK;
-                       break;
-               case NUDGE:
-                       text_message ("/jog/mode/name", "Nudge", get_address (msg));
-                       s->jogmode = NUDGE;
-                       break;
-               case MARKER:
-                       text_message ("/jog/mode/name", "Marker", get_address (msg));
-                       s->jogmode = MARKER;
-                       break;
-               default:
-                       PBD::warning << "Jog Mode: " << mode << " is not valid." << endmsg;
-                       break;
-       }
-       lo_message reply = lo_message_new ();
-       lo_message_add_int32 (reply, s->jogmode);
-       lo_send_message (get_address(msg), "/jog/mode", reply);
-       lo_message_free (reply);
-
+       s->jogmode = (uint32_t) mode;
+       s->global_obs->jog_mode (mode);
        return 0;
-
 }
 
 // two structs to help with going to markers
@@ -2857,13 +3350,24 @@ OSC::set_marker (const char* types, lo_arg **argv, int argc, lo_message msg)
 
        switch (types[0]) {
                case 's':
-                       for (Locations::LocationList::const_iterator l = ll.begin(); l != ll.end(); ++l) {
-                               if ((*l)->is_mark ()) {
-                                       if (strcmp (&argv[0]->s, (*l)->name().c_str()) == 0) {
-                                               session->request_locate ((*l)->start (), false);
-                                               return 0;
+                       {
+                               Location *cur_mark = 0;
+                               for (Locations::LocationList::const_iterator l = ll.begin(); l != ll.end(); ++l) {
+                                       if ((*l)->is_mark ()) {
+                                               if (strcmp (&argv[0]->s, (*l)->name().c_str()) == 0) {
+                                                       session->request_locate ((*l)->start (), false);
+                                                       return 0;
+                                               } else if ((*l)->start () == session->transport_sample()) {
+                                                       cur_mark = (*l);
+                                               }
                                        }
                                }
+                               if (cur_mark) {
+                                       cur_mark->set_name (&argv[0]->s);
+                                       return 0;
+                               }
+                               PBD::warning << string_compose ("Marker: \"%1\" - does not exist", &argv[0]->s) << endmsg;
+                               return -1;
                        }
                        break;
                case 'i':
@@ -2895,6 +3399,30 @@ OSC::set_marker (const char* types, lo_arg **argv, int argc, lo_message msg)
        return -1;
 }
 
+int
+OSC::group_list (lo_message msg)
+{
+       return send_group_list (get_address (msg));
+}
+
+int
+OSC::send_group_list (lo_address addr)
+{
+       lo_message reply;
+       reply = lo_message_new ();
+
+       lo_message_add_string (reply, X_("none"));
+
+       std::list<RouteGroup*> groups = session->route_groups ();
+       for (std::list<RouteGroup *>::iterator i = groups.begin(); i != groups.end(); ++i) {
+               RouteGroup *rg = *i;
+               lo_message_add_string (reply, rg->name().c_str());
+       }
+       lo_send_message (addr, X_("/group/list"), reply);
+       lo_message_free (reply);
+       return 0;
+}
+
 int
 OSC::click_level (float position)
 {
@@ -2991,7 +3519,7 @@ OSC::master_set_pan_stereo_position (float position, lo_message msg)
                lo_message reply = lo_message_new ();
                lo_message_add_float (reply, endposition);
 
-               lo_send_message (get_address (msg), "/master/pan_stereo_position", reply);
+               lo_send_message (get_address (msg), X_("/master/pan_stereo_position"), reply);
                lo_message_free (reply);
        }
 
@@ -3160,7 +3688,7 @@ OSC::route_get_sends(lo_message msg) {
        }
        // if used dedicated message path to identify this reply in async operation.
        // Naming it #reply wont help the client to identify the content.
-       lo_send_message(get_address (msg), "/strip/sends", reply);
+       lo_send_message(get_address (msg), X_("/strip/sends"), reply);
 
        lo_message_free(reply);
 
@@ -3224,7 +3752,7 @@ OSC::route_get_receives(lo_message msg) {
 
        // I have used a dedicated message path to identify this reply in async operation.
        // Naming it #reply wont help the client to identify the content.
-       lo_send_message(get_address (msg), "/strip/receives", reply);
+       lo_send_message(get_address (msg), X_("/strip/receives"), reply);
        lo_message_free(reply);
        return 0;
 }
@@ -3242,6 +3770,7 @@ OSC::set_automation (const char *path, const char* types, lo_arg **argv, int arg
        uint32_t ctr = 0;
        uint32_t aut = 0;
        uint32_t ssid;
+       boost::shared_ptr<Send> send = boost::shared_ptr<Send> ();
 
        if (argc) {
                if (types[argc - 1] == 'f') {
@@ -3252,7 +3781,7 @@ OSC::set_automation (const char *path, const char* types, lo_arg **argv, int arg
        }
 
        //parse path first to find stripable
-       if (!strncmp (path, "/strip/", 7)) {
+       if (!strncmp (path, X_("/strip/"), 7)) {
                // find ssid and stripable
                if (argc > 1) {
                        if (types[1] == 'f') {
@@ -3265,13 +3794,10 @@ OSC::set_automation (const char *path, const char* types, lo_arg **argv, int arg
                        ssid = atoi (&(strrchr (path, '/' ))[1]);
                        strp = get_strip (ssid, get_address (msg));
                }
+               send = get_send (strp, get_address (msg));
                ctr = 7;
-       } else if (!strncmp (path, "/select/", 8)) {
-               if (sur->expand_enable && sur->expand) {
-                       strp = get_strip (sur->expand, get_address (msg));
-               } else {
-                       strp = _select;
-               }
+       } else if (!strncmp (path, X_("/select/"), 8)) {
+               strp = sur->select;
                ctr = 8;
        } else {
                return ret;
@@ -3279,12 +3805,15 @@ OSC::set_automation (const char *path, const char* types, lo_arg **argv, int arg
        if (strp) {
                boost::shared_ptr<AutomationControl> control = boost::shared_ptr<AutomationControl>();
                // other automatable controls can be added by repeating the next 6.5 lines
-               if ((!strncmp (&path[ctr], "fader", 5)) || (!strncmp (&path[ctr], "gain", 4))) {
+               if ((!strncmp (&path[ctr], X_("fader"), 5)) || (!strncmp (&path[ctr], X_("gain"), 4))) {
                        if (strp->gain_control ()) {
                                control = strp->gain_control ();
                        } else {
                                PBD::warning << "No fader for this strip" << endmsg;
                        }
+                       if (send) {
+                               control = send->gain_control ();
+                       }
                } else {
                        PBD::warning << "Automation not available for " << path << endmsg;
                }
@@ -3308,6 +3837,10 @@ OSC::set_automation (const char *path, const char* types, lo_arg **argv, int arg
                                        control->set_automation_state (ARDOUR::Touch);
                                        ret = 0;
                                        break;
+                               case 4:
+                                       control->set_automation_state (ARDOUR::Latch);
+                                       ret = 0;
+                                       break;
                                default:
                                        break;
                        }
@@ -3325,6 +3858,7 @@ OSC::touch_detect (const char *path, const char* types, lo_arg **argv, int argc,
        int ret = 1;
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> strp = boost::shared_ptr<Stripable>();
+       boost::shared_ptr<Send> send = boost::shared_ptr<Send> ();
        uint32_t ctr = 0;
        uint32_t touch = 0;
        uint32_t ssid;
@@ -3338,7 +3872,7 @@ OSC::touch_detect (const char *path, const char* types, lo_arg **argv, int argc,
        }
 
        //parse path first to find stripable
-       if (!strncmp (path, "/strip/", 7)) {
+       if (!strncmp (path, X_("/strip/"), 7)) {
                // find ssid and stripable
                if (argc > 1) {
                        if (types[0] == 'f') {
@@ -3351,13 +3885,10 @@ OSC::touch_detect (const char *path, const char* types, lo_arg **argv, int argc,
                        ssid = atoi (&(strrchr (path, '/' ))[1]);
                        strp = get_strip (ssid, get_address (msg));
                }
+               send = get_send (strp, get_address (msg));
                ctr = 7;
-       } else if (!strncmp (path, "/select/", 8)) {
-               if (sur->expand_enable && sur->expand) {
-                       strp = get_strip (sur->expand, get_address (msg));
-               } else {
-                       strp = _select;
-               }
+       } else if (!strncmp (path, X_("/select/"), 8)) {
+               strp = sur->select;
                ctr = 8;
        } else {
                return ret;
@@ -3365,12 +3896,15 @@ OSC::touch_detect (const char *path, const char* types, lo_arg **argv, int argc,
        if (strp) {
                boost::shared_ptr<AutomationControl> control = boost::shared_ptr<AutomationControl>();
                // other automatable controls can be added by repeating the next 6.5 lines
-               if ((!strncmp (&path[ctr], "fader", 5)) || (!strncmp (&path[ctr], "gain", 4))) {
+               if ((!strncmp (&path[ctr], X_("fader"), 5)) || (!strncmp (&path[ctr], X_("gain"), 4))) {
                        if (strp->gain_control ()) {
                                control = strp->gain_control ();
                        } else {
                                PBD::warning << "No fader for this strip" << endmsg;
                        }
+                       if (send) {
+                               control = send->gain_control ();
+                       }
                } else {
                        PBD::warning << "Automation not available for " << path << endmsg;
                }
@@ -3410,6 +3944,104 @@ OSC::fake_touch (boost::shared_ptr<ARDOUR::AutomationControl> ctrl)
        return 0;
 }
 
+int
+OSC::spill (const char *path, const char* types, lo_arg **argv, int argc, lo_message msg)
+{
+       /*
+        * spill should have the form of:
+        * /select/spill (may have i or f keypress/release)
+        * /strip/spill i (may have keypress and i may be inline)
+        */
+       if (!session || argc > 1) return -1;
+
+       int ret = 1;
+       OSCSurface *sur = get_surface(get_address (msg));
+       boost::shared_ptr<Stripable> strp = boost::shared_ptr<Stripable>();
+       uint32_t value = 0;
+       OSCTempMode new_mode = TempOff;
+
+       if (argc) {
+               if (types[0] == 'f') {
+                       value = (int)argv[0]->f;
+               } else {
+                       value = argv[0]->i;
+               }
+               if (!value) {
+                       // key release ignore
+                       return 0;
+               }
+       }
+
+       //parse path first to find stripable
+       if (!strncmp (path, X_("/strip/"), 7)) {
+               /*
+                * we don't know if value is press or ssid
+                * so we have to check if the last / has an int after it first
+                * if not then we use value
+                */
+               uint32_t ssid = 0;
+               ssid = atoi (&(strrchr (path, '/' ))[1]);
+               if (!ssid) {
+                       ssid = value;
+               }
+               strp = get_strip (ssid, get_address (msg));
+       } else if (!strncmp (path, X_("/select/"), 8)) {
+               strp = sur->select;
+       } else {
+               return ret;
+       }
+       if (strp) {
+               boost::shared_ptr<Route> rt = boost::dynamic_pointer_cast<Route> (strp);
+               boost::shared_ptr<VCA> v = boost::dynamic_pointer_cast<VCA> (strp);
+               if (strstr (path, X_("/vca")) || v) {
+                       //strp must be a VCA
+                       if (v) {
+                               new_mode = VCAOnly;
+                       } else {
+                               return ret;
+                       }
+               } else
+               if (strstr (path, X_("/group"))) {
+                       //strp must be in a group
+                       if (rt) {
+                               RouteGroup *rg = rt->route_group();
+                               if (rg) {
+                                       new_mode = GroupOnly;
+                               } else {
+                                       return ret;
+                               }
+                       }
+               } else
+               if (strstr (path, X_("/bus"))) {
+                       //strp must be a bus with either sends or no inputs
+                       if (rt) {
+                               if (!rt->is_track () && rt->can_solo ()) {
+                                       new_mode = BusOnly;
+                               }
+                       }
+               } else {
+                       // decide by auto
+                       // vca should never get here
+                       if (rt->is_track ()) {
+                               if (rt->route_group()) {
+                                       new_mode = GroupOnly;
+                               }
+                       } else if (!rt->is_track () && rt->can_solo ()) {
+                                               new_mode = BusOnly;
+                       }
+               }
+               if (new_mode) {
+                       sur->temp_mode = new_mode;
+                       sur->temp_master = strp;
+                       set_temp_mode (get_address (msg));
+                       set_bank (1, msg);
+                       return 0;
+               }
+
+       }
+       return ret;
+}
+
 int
 OSC::route_mute (int ssid, int yn, lo_message msg)
 {
@@ -3418,13 +4050,16 @@ OSC::route_mute (int ssid, int yn, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/mute"), ssid, 0, sur->feedback[2], get_address (msg));
+               }
                if (s->mute_control()) {
                        s->mute_control()->set_value (yn ? 1.0 : 0.0, sur->usegroup);
                        return 0;
                }
        }
 
-       return float_message_with_id ("/strip/mute", ssid, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/strip/mute"), ssid, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -3432,18 +4067,14 @@ OSC::sel_mute (uint32_t yn, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->mute_control()) {
                        s->mute_control()->set_value (yn ? 1.0 : 0.0, PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/mute", 0, get_address (msg));
+       return float_message(X_("/select/mute"), 0, get_address (msg));
 }
 
 int
@@ -3454,12 +4085,15 @@ OSC::route_solo (int ssid, int yn, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/solo"), ssid, 0, sur->feedback[2], get_address (msg));
+               }
                if (s->solo_control()) {
                        s->solo_control()->set_value (yn ? 1.0 : 0.0, sur->usegroup);
                }
        }
 
-       return float_message_with_id ("/strip/solo", ssid, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/strip/solo"), ssid, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -3470,13 +4104,16 @@ OSC::route_solo_iso (int ssid, int yn, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/solo_iso"), ssid, 0, sur->feedback[2], get_address (msg));
+               }
                if (s->solo_isolate_control()) {
                        s->solo_isolate_control()->set_value (yn ? 1.0 : 0.0, sur->usegroup);
                        return 0;
                }
        }
 
-       return float_message_with_id ("/strip/solo_iso", ssid, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/strip/solo_iso"), ssid, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -3487,13 +4124,16 @@ OSC::route_solo_safe (int ssid, int yn, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/solo_safe"), ssid, 0, sur->feedback[2], get_address (msg));
+               }
                if (s->solo_safe_control()) {
                        s->solo_safe_control()->set_value (yn ? 1.0 : 0.0, sur->usegroup);
                        return 0;
                }
        }
 
-       return float_message_with_id ("/strip/solo_safe", ssid, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/strip/solo_safe"), ssid, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -3501,17 +4141,13 @@ OSC::sel_solo (uint32_t yn, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->solo_control()) {
                        session->set_control (s->solo_control(), yn ? 1.0 : 0.0, PBD::Controllable::NoGroup);
                }
        }
-       return float_message("/select/solo", 0, get_address (msg));
+       return float_message(X_("/select/solo"), 0, get_address (msg));
 }
 
 int
@@ -3519,18 +4155,14 @@ OSC::sel_solo_iso (uint32_t yn, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->solo_isolate_control()) {
                        s->solo_isolate_control()->set_value (yn ? 1.0 : 0.0, PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/solo_iso", 0, get_address (msg));
+       return float_message(X_("/select/solo_iso"), 0, get_address (msg));
 }
 
 int
@@ -3538,18 +4170,14 @@ OSC::sel_solo_safe (uint32_t yn, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->solo_safe_control()) {
                        s->solo_safe_control()->set_value (yn ? 1.0 : 0.0, PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/solo_safe", 0, get_address (msg));
+       return float_message(X_("/select/solo_safe"), 0, get_address (msg));
 }
 
 int
@@ -3557,11 +4185,7 @@ OSC::sel_recenable (uint32_t yn, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->rec_enable_control()) {
                        s->rec_enable_control()->set_value (yn ? 1.0 : 0.0, PBD::Controllable::NoGroup);
@@ -3570,7 +4194,7 @@ OSC::sel_recenable (uint32_t yn, lo_message msg)
                        }
                }
        }
-       return float_message("/select/recenable", 0, get_address (msg));
+       return float_message(X_("/select/recenable"), 0, get_address (msg));
 }
 
 int
@@ -3581,6 +4205,9 @@ OSC::route_recenable (int ssid, int yn, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/recenable"), ssid, 0, sur->feedback[2], get_address (msg));
+               }
                if (s->rec_enable_control()) {
                        s->rec_enable_control()->set_value (yn, sur->usegroup);
                        if (s->rec_enable_control()->get_value()) {
@@ -3588,34 +4215,207 @@ OSC::route_recenable (int ssid, int yn, lo_message msg)
                        }
                }
        }
-       return float_message_with_id ("/strip/recenable", ssid, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/strip/recenable"), ssid, 0, sur->feedback[2], get_address (msg));
 }
 
 int
-OSC::route_rename(int ssid, char *newname, lo_message msg) {
-    if (!session) {
-        return -1;
-    }
+OSC::route_rename (int ssid, char *newname, lo_message msg) {
+       if (!session) {
+               return -1;
+       }
+       OSCSurface *sur = get_surface(get_address (msg));
+       boost::shared_ptr<Stripable> s = get_strip(ssid, get_address(msg));
 
-    boost::shared_ptr<Stripable> s = get_strip(ssid, get_address(msg));
+       if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       text_message_with_id (X_("/strip/name"), ssid, string_compose ("%1-Send", s->name()), sur->feedback[2], get_address(msg));
+                       return 1;
+               }
+               s->set_name(std::string(newname));
+       }
 
-    if (s) {
-        s->set_name(std::string(newname));
-    }
+       return 0;
+}
 
-    return 0;
+int
+OSC::sel_rename (char *newname, lo_message msg) {
+       if (!session) {
+               return -1;
+       }
+
+       OSCSurface *sur = get_surface(get_address (msg));
+       boost::shared_ptr<Stripable> s;
+       s = sur->select;
+       if (s) {
+               s->set_name(std::string(newname));
+       }
+
+       return 0;
 }
 
 int
-OSC::sel_recsafe (uint32_t yn, lo_message msg)
+OSC::sel_comment (char *newcomment, lo_message msg) {
+       if (!session) {
+               return -1;
+       }
+
+       OSCSurface *sur = get_surface(get_address (msg));
+       boost::shared_ptr<Stripable> s;
+       s = sur->select;
+       if (s) {
+               boost::shared_ptr<Route> rt = boost::dynamic_pointer_cast<Route> (s);
+               if (!rt) {
+                       PBD::warning << "OSC: can not set comment on VCAs." << endmsg;
+                       return -1;
+               }
+               rt->set_comment (newcomment, this);
+       }
+
+       return 0;
+}
+
+int
+OSC::sel_new_personal_send (char *foldback, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
+       s = sur->select;
+       boost::shared_ptr<Route> rt = boost::shared_ptr<Route> ();
+       if (s) {
+               rt = boost::dynamic_pointer_cast<Route> (s);
+               if (!rt) {
+                       PBD::warning << "OSC: can not send from VCAs." << endmsg;
+                       return -1;
+               }
+       }
+       /* if a foldbackbus called foldback exists use it
+        * other wise create create it. Then create a foldback send from
+        * this route to that bus.
+        */
+       string foldbackbus = foldback;
+       string foldback_name = foldbackbus;
+       if (foldbackbus.find ("- monitor") == string::npos) {
+               foldback_name = string_compose ("%1 - monitor", foldbackbus);
+       }
+       boost::shared_ptr<Route> lsn_rt = session->route_by_name (foldback_name);
+       if (!lsn_rt) {
+               // doesn't exist but check if raw name does and is foldbackbus
+               boost::shared_ptr<Route> raw_rt = session->route_by_name (foldbackbus);
+               if (raw_rt && raw_rt->is_foldbackbus()) {
+                       lsn_rt = raw_rt;
+               } else {
+                       // create the foldbackbus
+                       RouteList list = session->new_audio_route (2, 2, 0, 1, foldback_name, PresentationInfo::FoldbackBus, (uint32_t) -1);
+                       lsn_rt = *(list.begin());
+                       lsn_rt->presentation_info().set_hidden (true);
+                       session->set_dirty();
+               }
+       }
+       if (lsn_rt) {
+               //boost::shared_ptr<Route> rt_send = ;
+               if (rt && (lsn_rt != rt)) {
+                       // make sure there isn't one already
+                       bool s_only = true;
+                       if (!rt->feeds (lsn_rt, &s_only)) {
+                               // create send
+                               rt->add_foldback_send (lsn_rt);
+                               //boost::shared_ptr<Send> snd = rt->internal_send_for (aux);
+                               session->dirty ();
+                               return 0;
+                       } else {
+                               PBD::warning << "OSC: new_send - duplicate send, ignored." << endmsg;
+                       }
+               } else {
+                       PBD::warning << "OSC: new_send - can't send to self." << endmsg;
+               }
        } else {
-               s = _select;
+               PBD::warning << "OSC: new_send - no FoldbackBus to send to." << endmsg;
+       }
+
+       return -1;
+}
+
+int
+OSC::strip_group (int ssid, char *group, lo_message msg) {
+       if (!session) {
+               return -1;
+       }
+       boost::shared_ptr<Stripable> s = get_strip(ssid, get_address(msg));
+       return strip_select_group (s, group);
+}
+
+int
+OSC::sel_group (char *group, lo_message msg) {
+       if (!session) {
+               return -1;
        }
+       OSCSurface *sur = get_surface(get_address (msg));
+       boost::shared_ptr<Stripable> s;
+       s = sur->select;
+       return strip_select_group (s, group);
+}
+
+int
+OSC::strip_select_group (boost::shared_ptr<Stripable> s, char *group)
+{
+       string grp = group;
+       if (grp == "" || grp == " ") {
+                       grp = "none";
+               }
+
+       if (s) {
+               boost::shared_ptr<Route> rt = boost::dynamic_pointer_cast<Route> (s);
+               if (!rt) {
+                       PBD::warning << "OSC: VCAs can not be part of a group." << endmsg;
+                       return -1;
+               }
+               RouteGroup *rg = rt->route_group();
+               RouteGroup* new_rg = session->route_group_by_name (grp);
+               if (rg) {
+                       string old_group = rg->name();
+                       if (grp == "none") {
+                               if (rg->size () == 1) {
+                                       session->remove_route_group (*rg);
+                               } else {
+                                       rg->remove (rt);
+                               }
+                       } else if (grp != old_group) {
+                               if (new_rg) {
+                                       // group exists switch to it
+                                       if (rg->size () == 1) {
+                                               session->remove_route_group (rg);
+                                       } else {
+                                               rg->remove (rt);
+                                       }
+                                       new_rg->add (rt);
+                               } else {
+                                       rg->set_name (grp);
+                               }
+                       } else {
+                               return 0;
+                       }
+               } else {
+                       if (grp == "none") {
+                               return 0;
+                       } else if (new_rg) {
+                               new_rg->add (rt);
+                       } else {
+                               // create new group with this strip in it
+                               RouteGroup* new_rg = new RouteGroup (*session, grp);
+                               session->add_route_group (new_rg);
+                               new_rg->add (rt);
+                       }
+               }
+       }
+       return 0;
+}
+
+int
+OSC::sel_recsafe (uint32_t yn, lo_message msg)
+{
+       OSCSurface *sur = get_surface(get_address (msg));
+       boost::shared_ptr<Stripable> s;
+       s = sur->select;
        if (s) {
                if (s->rec_safe_control()) {
                        s->rec_safe_control()->set_value (yn ? 1.0 : 0.0, PBD::Controllable::NoGroup);
@@ -3624,7 +4424,7 @@ OSC::sel_recsafe (uint32_t yn, lo_message msg)
                        }
                }
        }
-       return float_message("/select/record_safe", 0, get_address (msg));
+       return float_message(X_("/select/record_safe"), 0, get_address (msg));
 }
 
 int
@@ -3634,6 +4434,9 @@ OSC::route_recsafe (int ssid, int yn, lo_message msg)
        boost::shared_ptr<Stripable> s = get_strip (ssid, get_address (msg));
        OSCSurface *sur = get_surface(get_address (msg));
        if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/record_safe"), ssid, 0, sur->feedback[2], get_address (msg));
+               }
                if (s->rec_safe_control()) {
                        s->rec_safe_control()->set_value (yn, sur->usegroup);
                        if (s->rec_safe_control()->get_value()) {
@@ -3641,7 +4444,7 @@ OSC::route_recsafe (int ssid, int yn, lo_message msg)
                        }
                }
        }
-       return float_message_with_id ("/strip/record_safe", ssid, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/strip/record_safe"), ssid, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -3652,6 +4455,9 @@ OSC::route_monitor_input (int ssid, int yn, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/monitor_input"), ssid, 0, sur->feedback[2], get_address (msg));
+               }
                boost::shared_ptr<Track> track = boost::dynamic_pointer_cast<Track> (s);
                if (track) {
                        if (track->monitoring_control()) {
@@ -3663,7 +4469,7 @@ OSC::route_monitor_input (int ssid, int yn, lo_message msg)
                }
        }
 
-       return float_message_with_id ("/strip/monitor_input", ssid, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/strip/monitor_input"), ssid, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -3671,11 +4477,7 @@ OSC::sel_monitor_input (uint32_t yn, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                boost::shared_ptr<Track> track = boost::dynamic_pointer_cast<Track> (s);
                if (track) {
@@ -3687,7 +4489,7 @@ OSC::sel_monitor_input (uint32_t yn, lo_message msg)
                        }
                }
        }
-       return float_message("/select/monitor_input", 0, get_address (msg));
+       return float_message(X_("/select/monitor_input"), 0, get_address (msg));
 }
 
 int
@@ -3698,6 +4500,9 @@ OSC::route_monitor_disk (int ssid, int yn, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/monitor_disk"), ssid, 0, sur->feedback[2], get_address (msg));
+               }
                boost::shared_ptr<Track> track = boost::dynamic_pointer_cast<Track> (s);
                if (track) {
                        if (track->monitoring_control()) {
@@ -3709,7 +4514,7 @@ OSC::route_monitor_disk (int ssid, int yn, lo_message msg)
                }
        }
 
-       return float_message_with_id ("/strip/monitor_disk", ssid, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/strip/monitor_disk"), ssid, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -3717,11 +4522,7 @@ OSC::sel_monitor_disk (uint32_t yn, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                boost::shared_ptr<Track> track = boost::dynamic_pointer_cast<Track> (s);
                if (track) {
@@ -3733,7 +4534,7 @@ OSC::sel_monitor_disk (uint32_t yn, lo_message msg)
                        }
                }
        }
-       return float_message("/select/monitor_disk", 0, get_address (msg));
+       return float_message(X_("/select/monitor_disk"), 0, get_address (msg));
 }
 
 
@@ -3745,13 +4546,16 @@ OSC::strip_phase (int ssid, int yn, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/polarity"), ssid, 0, sur->feedback[2], get_address (msg));
+               }
                if (s->phase_control()) {
                        s->phase_control()->set_value (yn ? 1.0 : 0.0, sur->usegroup);
                        return 0;
                }
        }
 
-       return float_message_with_id ("/strip/polarity", ssid, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/strip/polarity"), ssid, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -3759,34 +4563,51 @@ OSC::sel_phase (uint32_t yn, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->phase_control()) {
                        s->phase_control()->set_value (yn ? 1.0 : 0.0, PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/polarity", 0, get_address (msg));
+       return float_message(X_("/select/polarity"), 0, get_address (msg));
 }
 
 int
 OSC::strip_expand (int ssid, int yn, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
+       boost::shared_ptr<Stripable> s = get_strip (ssid, get_address (msg));
+       if (s) {
+               sur->expand_strip = s;
+       }
        sur->expand_enable = (bool) yn;
        sur->expand = ssid;
-       boost::shared_ptr<Stripable> s;
+       boost::shared_ptr<Stripable> sel;
        if (yn) {
-               s = get_strip (ssid, get_address (msg));
+               sel = get_strip (ssid, get_address (msg));
        } else {
-               s = _select;
+               sel = boost::shared_ptr<Stripable> ();
        }
 
-       return _strip_select (s, get_address (msg));
+       return _strip_select (sel, get_address (msg));
+}
+
+int
+OSC::strip_hide (int ssid, int state, lo_message msg)
+{
+       boost::shared_ptr<Stripable> s = get_strip (ssid, get_address (msg));
+       OSCSurface *sur = get_surface(get_address (msg));
+
+       if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/hide"), ssid, 0, sur->feedback[2], get_address (msg));
+               }
+               if (state != s->is_hidden ()) {
+                       s->presentation_info().set_hidden ((bool) state);
+               }
+       }
+       return 0;
 }
 
 int
@@ -3796,8 +4617,23 @@ OSC::_strip_select (boost::shared_ptr<Stripable> s, lo_address addr)
                return -1;
        }
        OSCSurface *sur = get_surface(addr, true);
+       boost::weak_ptr<Stripable> o_sel = sur->select;
+       boost::shared_ptr<Stripable> old_sel= o_sel.lock ();
+       boost::weak_ptr<Stripable> o_expand = sur->expand_strip;
+       boost::shared_ptr<Stripable> old_expand= o_expand.lock ();
+
+       // we got a null strip check that old strips are valid
+       if (!s) {
+               if (old_expand && sur->expand_enable) {
+                       sur->expand = get_sid (old_expand, addr);
+                       if (sur->strip_types[11] || sur->expand) {
+                               s = old_expand;
+                       } else {
+                               sur->expand_strip = boost::shared_ptr<Stripable> ();
+                       }
+               }
+       }
        if (!s) {
-               // expand doesn't point to a stripable, turn it off and use select
                sur->expand = 0;
                sur->expand_enable = false;
                if (ControlProtocol::first_selected_stripable()) {
@@ -3805,9 +4641,11 @@ OSC::_strip_select (boost::shared_ptr<Stripable> s, lo_address addr)
                } else {
                        s = session->master_out ();
                }
-                       _select = s;
+               _select = s;
+       }
+       if (s != old_sel) {
+               sur->select = s;
        }
-       sur->select = s;
        bool sends;
        uint32_t nsends  = 0;
        do {
@@ -3826,12 +4664,20 @@ OSC::_strip_select (boost::shared_ptr<Stripable> s, lo_address addr)
                if (so != 0) {
                        so->refresh_strip (s, nsends, sur->gainmode, true);
                } else {
-                       OSCSelectObserver* sel_fb = new OSCSelectObserver (*this, sur);
+                       OSCSelectObserver* sel_fb = new OSCSelectObserver (*this, *session, sur);
                        sur->sel_obs = sel_fb;
                }
                sur->sel_obs->set_expand (sur->expand_enable);
+       } else {
+               if (so != 0) {
+                       delete so;
+                       sur->sel_obs = 0;
+               }
+       }
+       if (sur->feedback[0] || sur->feedback[1]) {
                uint32_t obs_expand = 0;
                if (sur->expand_enable) {
+                       sur->expand = get_sid (s, addr);
                        obs_expand = sur->expand;
                } else {
                        obs_expand = 0;
@@ -3839,11 +4685,6 @@ OSC::_strip_select (boost::shared_ptr<Stripable> s, lo_address addr)
                for (uint32_t i = 0; i < sur->observers.size(); i++) {
                        sur->observers[i]->set_expand (obs_expand);
                }
-       } else {
-               if (so != 0) {
-                       delete so;
-                       sur->sel_obs = 0;
-               }
        }
        // need to set monitor for processor changed signal (for paging)
        string address = lo_address_get_url (addr);
@@ -3878,13 +4719,13 @@ OSC::strip_gui_select (int ssid, int yn, lo_message msg)
                return -1;
        }
        OSCSurface *sur = get_surface(get_address (msg));
-       sur->expand_enable = false;
        boost::shared_ptr<Stripable> s = get_strip (ssid, get_address (msg));
        if (s) {
+               sur->expand_enable = false;
                SetStripableSelection (s);
        } else {
                if ((int) (sur->feedback.to_ulong())) {
-                       float_message_with_id ("/strip/select", ssid, 0, sur->feedback[2], get_address (msg));
+                       float_message_with_id (X_("/strip/select"), ssid, 0, sur->feedback[2], get_address (msg));
                }
        }
 
@@ -3896,36 +4737,84 @@ OSC::sel_expand (uint32_t state, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (state && sur->expand) {
+       if (!sur->expand_strip) {
+               state = 0;
+               float_message (X_("/select/expand"), 0.0, get_address (msg));
+       }
+       if (state) {
                sur->expand_enable = (bool) state;
-               s = get_strip (sur->expand, get_address (msg));
+               s = boost::shared_ptr<Stripable> ();
        } else {
                sur->expand_enable = false;
-               s = _select;
+               s = boost::shared_ptr<Stripable> ();
        }
 
        return _strip_select (s, get_address (msg));
 }
 
 int
-OSC::route_set_gain_abs (int ssid, float level, lo_message msg)
+OSC::sel_previous (lo_message msg)
 {
-       if (!session) return -1;
-       boost::shared_ptr<Stripable> s = get_strip (ssid, get_address (msg));
-       OSCSurface *sur = get_surface(get_address (msg));
+       return sel_delta (-1, msg);
+}
 
-       if (s) {
-               if (s->gain_control()) {
-                       fake_touch (s->gain_control());
-                       s->gain_control()->set_value (level, sur->usegroup);
+int
+OSC::sel_next (lo_message msg)
+{
+       return sel_delta (1, msg);
+}
+
+int
+OSC::sel_delta (int delta, lo_message msg)
+{
+       if (!delta) {
+               return 0;
+       }
+       OSCSurface *sur = get_surface(get_address (msg));
+       Sorted sel_strips;
+       sel_strips = sur->strips;
+       // the current selected strip _should_ be in sel_strips
+       uint32_t nstps = sel_strips.size ();
+       if (!nstps) {
+               return -1;
+       }
+       boost::shared_ptr<Stripable> new_sel = boost::shared_ptr<Stripable> ();
+       boost::weak_ptr<Stripable> o_sel = sur->select;
+       boost::shared_ptr<Stripable> old_sel= o_sel.lock ();
+       for (uint32_t i = 0; i < nstps; i++) {
+               if (old_sel == sel_strips[i]) {
+                       if (i && delta < 0) {
+                               // i is > 0 and delta is -1
+                               new_sel = sel_strips[i - 1];
+                       } else if ((i + 1) < nstps && delta > 0) {
+                               // i is at least 1 less than greatest and delta = 1
+                               new_sel = sel_strips[i + 1];
+                       } else if ((i + 1) >= nstps && delta > 0) {
+                               // i is greatest strip and delta 1
+                               new_sel = sel_strips[0];
+                       } else if (!i && delta < 0) {
+                               // i = 0 and delta -1
+                               new_sel = sel_strips[nstps - 1];
+                       } else {
+                               // should not happen
+                               return -1;
+                       }
+               }
+       }
+       if (!new_sel) {
+               // our selected strip has vanished use the first one
+               new_sel = sel_strips[0];
+       }
+       if (new_sel) {
+               if (!sur->expand_enable) {
+                       SetStripableSelection (new_sel);
                } else {
-                       return 1;
+                       sur->expand_strip = new_sel;
+                       _strip_select (new_sel, get_address (msg));
                }
-       } else {
-               return 1;
+               return 0;
        }
-
-       return 0;
+       return -1;
 }
 
 int
@@ -3935,16 +4824,31 @@ OSC::route_set_gain_dB (int ssid, float dB, lo_message msg)
                return -1;
        }
        OSCSurface *sur = get_surface(get_address (msg));
-       int ret;
-       if (dB < -192) {
-               ret = route_set_gain_abs (ssid, 0.0, msg);
-       } else {
-               ret = route_set_gain_abs (ssid, dB_to_coefficient (dB), msg);
-       }
-       if (ret != 0) {
-               return float_message_with_id ("/strip/gain", ssid, -193, sur->feedback[2], get_address (msg));
+       boost::shared_ptr<Stripable> s = get_strip (ssid, get_address (msg));
+       if (s) {
+               boost::shared_ptr<GainControl> gain_control;
+               if (sur->temp_mode == BusOnly && get_send (s, get_address (msg))) {
+                       gain_control = get_send(s, get_address (msg))->gain_control();
+               } else {
+                       gain_control = s->gain_control();
+               }
+               float abs;
+               if (gain_control) {
+                       if (dB < -192) {
+                               abs = 0;
+                       } else {
+                               abs = dB_to_coefficient (dB);
+                               float top = gain_control->upper();
+                               if (abs > top) {
+                                       abs = top;
+                               }
+                       }
+                       fake_touch (gain_control);
+                       gain_control->set_value (abs, sur->usegroup);
+                       return 0;
+               }
        }
-       return 0;
+       return float_message_with_id (X_("/strip/gain"), ssid, -193, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -3952,11 +4856,7 @@ OSC::sel_gain (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                float abs;
                if (s->gain_control()) {
@@ -3974,7 +4874,7 @@ OSC::sel_gain (float val, lo_message msg)
                        return 0;
                }
        }
-       return float_message("/select/gain", -193, get_address (msg));
+       return float_message(X_("/select/gain"), -193, get_address (msg));
 }
 
 int
@@ -3982,11 +4882,7 @@ OSC::sel_dB_delta (float delta, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->gain_control()) {
                        float dB = accurate_coefficient_to_dB (s->gain_control()->get_value()) + delta;
@@ -4005,7 +4901,7 @@ OSC::sel_dB_delta (float delta, lo_message msg)
                        return 0;
                }
        }
-       return float_message("/select/gain", -193, get_address (msg));
+       return float_message(X_("/select/gain"), -193, get_address (msg));
 }
 
 int
@@ -4018,14 +4914,20 @@ OSC::route_set_gain_fader (int ssid, float pos, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
-               if (s->gain_control()) {
-                       fake_touch (s->gain_control());
-                       s->gain_control()->set_value (s->gain_control()->interface_to_internal (pos), sur->usegroup);
+               boost::shared_ptr<GainControl> gain_control;
+               if (sur->temp_mode == BusOnly && get_send (s, get_address (msg))) {
+                       gain_control = get_send(s, get_address (msg))->gain_control();
                } else {
-                       return float_message_with_id ("/strip/fader", ssid, 0, sur->feedback[2], get_address (msg));
+                       gain_control = s->gain_control();
+               }
+               if (gain_control) {
+                       fake_touch (gain_control);
+                       gain_control->set_value (gain_control->interface_to_internal (pos), sur->usegroup);
+               } else {
+                       return float_message_with_id (X_("/strip/fader"), ssid, 0, sur->feedback[2], get_address (msg));
                }
        } else {
-               return float_message_with_id ("/strip/fader", ssid, 0, sur->feedback[2], get_address (msg));
+               return float_message_with_id (X_("/strip/fader"), ssid, 0, sur->feedback[2], get_address (msg));
        }
        return 0;
 }
@@ -4037,18 +4939,24 @@ OSC::strip_db_delta (int ssid, float delta, lo_message msg)
        boost::shared_ptr<Stripable> s = get_strip (ssid, get_address (msg));
        OSCSurface *sur = get_surface(get_address (msg));
        if (s) {
-               float db = accurate_coefficient_to_dB (s->gain_control()->get_value()) + delta;
+               boost::shared_ptr<GainControl> gain_control;
+               if (sur->temp_mode == BusOnly && get_send (s, get_address (msg))) {
+                       gain_control = get_send(s, get_address (msg))->gain_control();
+               } else {
+                       gain_control = s->gain_control();
+               }
+               float db = accurate_coefficient_to_dB (gain_control->get_value()) + delta;
                float abs;
                if (db < -192) {
                        abs = 0;
                } else {
                        abs = dB_to_coefficient (db);
-                       float top = s->gain_control()->upper();
+                       float top = gain_control->upper();
                        if (abs > top) {
                                abs = top;
                        }
                }
-               s->gain_control()->set_value (abs, sur->usegroup);
+               gain_control->set_value (abs, sur->usegroup);
                return 0;
        }
        return -1;
@@ -4059,11 +4967,7 @@ OSC::sel_fader (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->gain_control()) {
                        fake_touch (s->gain_control());
@@ -4071,7 +4975,7 @@ OSC::sel_fader (float val, lo_message msg)
                        return 0;
                }
        }
-       return float_message("/select/fader", 0, get_address (msg));
+       return float_message(X_("/select/fader"), 0, get_address (msg));
 }
 
 int
@@ -4082,6 +4986,9 @@ OSC::route_set_trim_abs (int ssid, float level, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/trimdB"), ssid, 0, sur->feedback[2], get_address (msg));
+               }
                if (s->trim_control()) {
                        s->trim_control()->set_value (level, sur->usegroup);
                        return 0;
@@ -4099,7 +5006,7 @@ OSC::route_set_trim_dB (int ssid, float dB, lo_message msg)
        int ret;
        ret = route_set_trim_abs(ssid, dB_to_coefficient (dB), msg);
        if (ret != 0) {
-               return float_message_with_id ("/strip/trimdB", ssid, 0, sur->feedback[2], get_address (msg));
+               return float_message_with_id (X_("/strip/trimdB"), ssid, 0, sur->feedback[2], get_address (msg));
        }
 
 return 0;
@@ -4110,18 +5017,14 @@ OSC::sel_trim (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->trim_control()) {
                        s->trim_control()->set_value (dB_to_coefficient (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/trimdB", 0, get_address (msg));
+       return float_message(X_("/select/trimdB"), 0, get_address (msg));
 }
 
 int
@@ -4129,11 +5032,7 @@ OSC::sel_hide (uint32_t state, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (state != s->is_hidden ()) {
                        s->presentation_info().set_hidden ((bool) state);
@@ -4147,18 +5046,14 @@ OSC::sel_pan_position (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if(s->pan_azimuth_control()) {
                        s->pan_azimuth_control()->set_value (s->pan_azimuth_control()->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/pan_stereo_position", 0.5, get_address (msg));
+       return float_message(X_("/select/pan_stereo_position"), 0.5, get_address (msg));
 }
 
 int
@@ -4166,18 +5061,14 @@ OSC::sel_pan_width (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->pan_width_control()) {
                        s->pan_width_control()->set_value (s->pan_width_control()->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/pan_stereo_width", 1, get_address (msg));
+       return float_message(X_("/select/pan_stereo_width"), 1, get_address (msg));
 }
 
 int
@@ -4188,13 +5079,22 @@ OSC::route_set_pan_stereo_position (int ssid, float pos, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
-               if(s->pan_azimuth_control()) {
-                       s->pan_azimuth_control()->set_value (s->pan_azimuth_control()->interface_to_internal (pos), sur->usegroup);
+               boost::shared_ptr<PBD::Controllable> pan_control = boost::shared_ptr<PBD::Controllable>();
+               if (sur->temp_mode == BusOnly && get_send (s, get_address (msg))) {
+                       boost::shared_ptr<ARDOUR::Send> send = get_send (s, get_address (msg));
+                       if (send->pan_outs() > 1) {
+                               pan_control = send->panner_shell()->panner()->pannable()->pan_azimuth_control;
+                       }
+               } else {
+                       pan_control = s->pan_azimuth_control();
+               }
+               if(pan_control) {
+                       pan_control->set_value (s->pan_azimuth_control()->interface_to_internal (pos), sur->usegroup);
                        return 0;
                }
        }
 
-       return float_message_with_id ("/strip/pan_stereo_position", ssid, 0.5, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/strip/pan_stereo_position"), ssid, 0.5, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -4205,13 +5105,16 @@ OSC::route_set_pan_stereo_width (int ssid, float pos, lo_message msg)
        OSCSurface *sur = get_surface(get_address (msg));
 
        if (s) {
+               if ((sur->temp_mode == BusOnly) && (s != sur->temp_master)) {
+                       return float_message_with_id (X_("/strip/pan_stereo_width"), ssid, 1, sur->feedback[2], get_address (msg));
+               }
                if (s->pan_width_control()) {
                        s->pan_width_control()->set_value (pos, sur->usegroup);
                        return 0;
                }
        }
 
-       return float_message_with_id ("/strip/pan_stereo_width", ssid, 1, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/strip/pan_stereo_width"), ssid, 1, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -4273,14 +5176,10 @@ OSC::sel_sendgain (int id, float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        if (sur->send_page_size && (id > (int)sur->send_page_size)) {
-               return float_message_with_id ("/select/send_gain", id, -193, sur->feedback[2], get_address (msg));
+               return float_message_with_id (X_("/select/send_gain"), id, -193, sur->feedback[2], get_address (msg));
        }
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        float abs;
        int send_id = 0;
        if (s) {
@@ -4304,7 +5203,7 @@ OSC::sel_sendgain (int id, float val, lo_message msg)
                        return 0;
                }
        }
-       return float_message_with_id ("/select/send_gain", id, -193, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/select/send_gain"), id, -193, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -4312,14 +5211,10 @@ OSC::sel_sendfader (int id, float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        if (sur->send_page_size && (id > (int)sur->send_page_size)) {
-               return float_message_with_id ("/select/send_fader", id, 0, sur->feedback[2], get_address (msg));
+               return float_message_with_id (X_("/select/send_fader"), id, 0, sur->feedback[2], get_address (msg));
        }
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        float abs;
        int send_id = 0;
        if (s) {
@@ -4337,7 +5232,7 @@ OSC::sel_sendfader (int id, float val, lo_message msg)
                        return 0;
                }
        }
-       return float_message_with_id ("/select/send_fader", id, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/select/send_fader"), id, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -4388,14 +5283,10 @@ OSC::sel_sendenable (int id, float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        if (sur->send_page_size && (id > (int)sur->send_page_size)) {
-               return float_message_with_id ("/select/send_enable", id, 0, sur->feedback[2], get_address (msg));
+               return float_message_with_id (X_("/select/send_enable"), id, 0, sur->feedback[2], get_address (msg));
        }
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        int send_id = 0;
        if (s) {
                if (id > 0) {
@@ -4412,7 +5303,7 @@ OSC::sel_sendenable (int id, float val, lo_message msg)
                        boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route> (s);
                        if (!r) {
                                // should never get here
-                               return float_message_with_id ("/select/send_enable", id, 0, sur->feedback[2], get_address (msg));
+                               return float_message_with_id (X_("/select/send_enable"), id, 0, sur->feedback[2], get_address (msg));
                        }
                        boost::shared_ptr<Send> snd = boost::dynamic_pointer_cast<Send> (r->nth_send(send_id));
                        if (snd) {
@@ -4425,7 +5316,7 @@ OSC::sel_sendenable (int id, float val, lo_message msg)
                        return 0;
                }
        }
-       return float_message_with_id ("/select/send_enable", id, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/select/send_enable"), id, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -4433,18 +5324,14 @@ OSC::sel_master_send_enable (int state, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->master_send_enable_controllable ()) {
                        s->master_send_enable_controllable()->set_value (state, PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message ("/select/master_send_enable", 0, get_address(msg));
+       return float_message (X_("/select/master_send_enable"), 0, get_address(msg));
 }
 
 int
@@ -4498,10 +5385,10 @@ OSC::select_plugin_parameter (const char *path, const char* types, lo_arg **argv
                return -1;
        }
        if (!piid || piid > sur->plugins.size ()) {
-               return float_message_with_id ("/select/plugin/parameter", paid, 0, sur->feedback[2], get_address (msg));
+               return float_message_with_id (X_("/select/plugin/parameter"), paid, 0, sur->feedback[2], get_address (msg));
        }
        if (sur->plug_page_size && (paid > (int)sur->plug_page_size)) {
-               return float_message_with_id ("/select/plugin/parameter", paid, 0, sur->feedback[2], get_address (msg));
+               return float_message_with_id (X_("/select/plugin/parameter"), paid, 0, sur->feedback[2], get_address (msg));
        }
        boost::shared_ptr<Stripable> s = sur->select;
        boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route>(s);
@@ -4519,7 +5406,7 @@ OSC::select_plugin_parameter (const char *path, const char* types, lo_arg **argv
        int parid = paid + (int)sur->plug_page - 1;
        if (parid > (int) sur->plug_params.size ()) {
                if (sur->feedback[13]) {
-                       float_message_with_id ("/select/plugin/parameter", paid, 0, sur->feedback[2], get_address (msg));
+                       float_message_with_id (X_("/select/plugin/parameter"), paid, 0, sur->feedback[2], get_address (msg));
                }
                return 0;
        }
@@ -4576,7 +5463,7 @@ OSC::sel_plugin_activate (float state, lo_message msg)
                        }
                }
        }
-       float_message ("/select/plugin/activate", 0, get_address (msg));
+       float_message (X_("/select/plugin/activate"), 0, get_address (msg));
        PBD::warning << "OSC: Select has no Plugin." << endmsg;
        return 0;
 }
@@ -4620,7 +5507,7 @@ OSC::route_plugin_list (int ssid, lo_message msg) {
                piid++;
        }
 
-       lo_send_message (get_address (msg), "/strip/plugin/list", reply);
+       lo_send_message (get_address (msg), X_("/strip/plugin/list"), reply);
        lo_message_free (reply);
        return 0;
 }
@@ -4740,14 +5627,14 @@ OSC::route_plugin_descriptor (int ssid, int piid, lo_message msg) {
                        lo_message_add_double (reply, 0);
                }
 
-               lo_send_message (get_address (msg), "/strip/plugin/descriptor", reply);
+               lo_send_message (get_address (msg), X_("/strip/plugin/descriptor"), reply);
                lo_message_free (reply);
        }
 
        lo_message reply = lo_message_new ();
        lo_message_add_int32 (reply, ssid);
        lo_message_add_int32 (reply, piid);
-       lo_send_message (get_address (msg), "/strip/plugin/descriptor_end", reply);
+       lo_send_message (get_address (msg), X_("/strip/plugin/descriptor_end"), reply);
        lo_message_free (reply);
 
        return 0;
@@ -4973,18 +5860,14 @@ OSC::sel_pan_elevation (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->pan_elevation_control()) {
                        s->pan_elevation_control()->set_value (s->pan_elevation_control()->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/pan_elevation_position", 0, get_address (msg));
+       return float_message(X_("/select/pan_elevation_position"), 0, get_address (msg));
 }
 
 int
@@ -4992,18 +5875,14 @@ OSC::sel_pan_frontback (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->pan_frontback_control()) {
                        s->pan_frontback_control()->set_value (s->pan_frontback_control()->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/pan_frontback_position", 0.5, get_address (msg));
+       return float_message(X_("/select/pan_frontback_position"), 0.5, get_address (msg));
 }
 
 int
@@ -5011,18 +5890,14 @@ OSC::sel_pan_lfe (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->pan_lfe_control()) {
                        s->pan_lfe_control()->set_value (s->pan_lfe_control()->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/pan_lfe_control", 0, get_address (msg));
+       return float_message(X_("/select/pan_lfe_control"), 0, get_address (msg));
 }
 
 // compressor control
@@ -5031,18 +5906,14 @@ OSC::sel_comp_enable (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->comp_enable_controllable()) {
                        s->comp_enable_controllable()->set_value (s->comp_enable_controllable()->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/comp_enable", 0, get_address (msg));
+       return float_message(X_("/select/comp_enable"), 0, get_address (msg));
 }
 
 int
@@ -5050,18 +5921,14 @@ OSC::sel_comp_threshold (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->comp_threshold_controllable()) {
                        s->comp_threshold_controllable()->set_value (s->comp_threshold_controllable()->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/comp_threshold", 0, get_address (msg));
+       return float_message(X_("/select/comp_threshold"), 0, get_address (msg));
 }
 
 int
@@ -5069,18 +5936,14 @@ OSC::sel_comp_speed (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->comp_speed_controllable()) {
                        s->comp_speed_controllable()->set_value (s->comp_speed_controllable()->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/comp_speed", 0, get_address (msg));
+       return float_message(X_("/select/comp_speed"), 0, get_address (msg));
 }
 
 int
@@ -5088,18 +5951,14 @@ OSC::sel_comp_mode (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->comp_mode_controllable()) {
                        s->comp_mode_controllable()->set_value (s->comp_mode_controllable()->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/comp_mode", 0, get_address (msg));
+       return float_message(X_("/select/comp_mode"), 0, get_address (msg));
 }
 
 int
@@ -5107,18 +5966,14 @@ OSC::sel_comp_makeup (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->comp_makeup_controllable()) {
                        s->comp_makeup_controllable()->set_value (s->comp_makeup_controllable()->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/comp_makeup", 0, get_address (msg));
+       return float_message(X_("/select/comp_makeup"), 0, get_address (msg));
 }
 
 // EQ control
@@ -5128,18 +5983,14 @@ OSC::sel_eq_enable (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->eq_enable_controllable()) {
                        s->eq_enable_controllable()->set_value (s->eq_enable_controllable()->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/eq_enable", 0, get_address (msg));
+       return float_message(X_("/select/eq_enable"), 0, get_address (msg));
 }
 
 int
@@ -5147,18 +5998,14 @@ OSC::sel_eq_hpf_freq (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->filter_freq_controllable(true)) {
                        s->filter_freq_controllable(true)->set_value (s->filter_freq_controllable(true)->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/eq_hpf/freq", 0, get_address (msg));
+       return float_message(X_("/select/eq_hpf/freq"), 0, get_address (msg));
 }
 
 int
@@ -5166,18 +6013,14 @@ OSC::sel_eq_lpf_freq (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->filter_freq_controllable(false)) {
                        s->filter_freq_controllable(false)->set_value (s->filter_freq_controllable(false)->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/eq_lpf/freq", 0, get_address (msg));
+       return float_message(X_("/select/eq_lpf/freq"), 0, get_address (msg));
 }
 
 int
@@ -5185,18 +6028,14 @@ OSC::sel_eq_hpf_enable (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->filter_enable_controllable(true)) {
                        s->filter_enable_controllable(true)->set_value (s->filter_enable_controllable(true)->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/eq_hpf/enable", 0, get_address (msg));
+       return float_message(X_("/select/eq_hpf/enable"), 0, get_address (msg));
 }
 
 int
@@ -5204,18 +6043,14 @@ OSC::sel_eq_lpf_enable (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->filter_enable_controllable(false)) {
                        s->filter_enable_controllable(false)->set_value (s->filter_enable_controllable(false)->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/eq_lpf/enable", 0, get_address (msg));
+       return float_message(X_("/select/eq_lpf/enable"), 0, get_address (msg));
 }
 
 int
@@ -5223,18 +6058,14 @@ OSC::sel_eq_hpf_slope (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->filter_slope_controllable(true)) {
                        s->filter_slope_controllable(true)->set_value (s->filter_slope_controllable(true)->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/eq_hpf/slope", 0, get_address (msg));
+       return float_message(X_("/select/eq_hpf/slope"), 0, get_address (msg));
 }
 
 int
@@ -5242,18 +6073,14 @@ OSC::sel_eq_lpf_slope (float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (s->filter_slope_controllable(false)) {
                        s->filter_slope_controllable(false)->set_value (s->filter_slope_controllable(false)->interface_to_internal (val), PBD::Controllable::NoGroup);
                        return 0;
                }
        }
-       return float_message("/select/eq_lpf/slope", 0, get_address (msg));
+       return float_message(X_("/select/eq_lpf/slope"), 0, get_address (msg));
 }
 
 int
@@ -5261,11 +6088,7 @@ OSC::sel_eq_gain (int id, float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (id > 0) {
                        --id;
@@ -5275,7 +6098,7 @@ OSC::sel_eq_gain (int id, float val, lo_message msg)
                        return 0;
                }
        }
-       return float_message_with_id ("/select/eq_gain", id + 1, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/select/eq_gain"), id + 1, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -5283,11 +6106,7 @@ OSC::sel_eq_freq (int id, float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (id > 0) {
                        --id;
@@ -5297,7 +6116,7 @@ OSC::sel_eq_freq (int id, float val, lo_message msg)
                        return 0;
                }
        }
-       return float_message_with_id ("/select/eq_freq", id + 1, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/select/eq_freq"), id + 1, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -5305,11 +6124,7 @@ OSC::sel_eq_q (int id, float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (id > 0) {
                        --id;
@@ -5319,7 +6134,7 @@ OSC::sel_eq_q (int id, float val, lo_message msg)
                        return 0;
                }
        }
-       return float_message_with_id ("/select/eq_q", id + 1, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/select/eq_q"), id + 1, 0, sur->feedback[2], get_address (msg));
 }
 
 int
@@ -5327,11 +6142,7 @@ OSC::sel_eq_shape (int id, float val, lo_message msg)
 {
        OSCSurface *sur = get_surface(get_address (msg));
        boost::shared_ptr<Stripable> s;
-       if (sur->expand_enable) {
-               s = get_strip (sur->expand, get_address (msg));
-       } else {
-               s = _select;
-       }
+       s = sur->select;
        if (s) {
                if (id > 0) {
                        --id;
@@ -5341,7 +6152,7 @@ OSC::sel_eq_shape (int id, float val, lo_message msg)
                        return 0;
                }
        }
-       return float_message_with_id ("/select/eq_shape", id + 1, 0, sur->feedback[2], get_address (msg));
+       return float_message_with_id (X_("/select/eq_shape"), id + 1, 0, sur->feedback[2], get_address (msg));
 }
 
 // timer callbacks
@@ -5420,15 +6231,15 @@ XMLNode&
 OSC::get_state ()
 {
        XMLNode& node (ControlProtocol::get_state());
-       node.set_property ("debugmode", (int32_t) _debugmode); // TODO: enum2str
-       node.set_property ("address-only", address_only);
-       node.set_property ("remote-port", remote_port);
-       node.set_property ("banksize", default_banksize);
-       node.set_property ("striptypes", default_strip);
-       node.set_property ("feedback", default_feedback);
-       node.set_property ("gainmode", default_gainmode);
-       node.set_property ("send-page-size", default_send_size);
-       node.set_property ("plug-page-size", default_plugin_size);
+       node.set_property (X_("debugmode"), (int32_t) _debugmode); // TODO: enum2str
+       node.set_property (X_("address-only"), address_only);
+       node.set_property (X_("remote-port"), remote_port);
+       node.set_property (X_("banksize"), default_banksize);
+       node.set_property (X_("striptypes"), default_strip);
+       node.set_property (X_("feedback"), default_feedback);
+       node.set_property (X_("gainmode"), default_gainmode);
+       node.set_property (X_("send-page-size"), default_send_size);
+       node.set_property (X_("plug-page-size"), default_plugin_size);
        return node;
 }
 
@@ -5485,7 +6296,7 @@ OSC::get_sorted_stripables(std::bitset<32> types, bool cue, uint32_t custom, Sor
        StripableList custom_list;
 
        // fetch all stripables
-       session->get_stripables (stripables);
+       session->get_stripables (stripables, PresentationInfo::AllStripables);
        if (custom) {
                uint32_t nstps = my_list.size ();
                // check each custom strip to see if it still exists
@@ -5538,31 +6349,23 @@ OSC::get_sorted_stripables(std::bitset<32> types, bool cue, uint32_t custom, Sor
                                sorted.push_back (s);
                        } else if (types[4] && boost::dynamic_pointer_cast<VCA>(s)) {
                                sorted.push_back (s);
+                       } else  if (s->is_foldbackbus()) {
+                               if (types[7]) {
+                                       sorted.push_back (s);
+                               }
                        } else
 #ifdef MIXBUS
                        if (types[2] && Profile->get_mixbus() && s->mixbus()) {
                                sorted.push_back (s);
                        } else
-                       if (types[7] && boost::dynamic_pointer_cast<Route>(s) && !boost::dynamic_pointer_cast<Track>(s)) {
-                               if (Profile->get_mixbus() && !s->mixbus()) {
-                                       sorted.push_back (s);
-                               }
-                       } else
 #endif
-                       if ((types[2] || types[3] || types[7]) && boost::dynamic_pointer_cast<Route>(s) && !boost::dynamic_pointer_cast<Track>(s)) {
+                       if (boost::dynamic_pointer_cast<Route>(s) && !boost::dynamic_pointer_cast<Track>(s)) {
                                boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route>(s);
                                if (!(s->presentation_info().flags() & PresentationInfo::MidiBus)) {
                                        // note some older sessions will show midibuses as busses
-                                       if (r->direct_feeds_according_to_reality (session->master_out())) {
-                                               // this is a bus
-                                               if (types[2]) {
-                                                       sorted.push_back (s);
-                                               }
-                                       } else {
-                                               // this is an Aux out
-                                               if (types[7]) {
-                                                       sorted.push_back (s);
-                                               }
+                                       // this is a bus
+                                       if (types[2]) {
+                                               sorted.push_back (s);
                                        }
                                } else if (types[3]) {
                                                sorted.push_back (s);
@@ -5601,7 +6404,7 @@ OSC::cue_parse (const char *path, const char* types, lo_arg **argv, int argc, lo
                }
        }
        int ret = 1; /* unhandled */
-       if (!strncmp (path, "/cue/aux", 8)) {
+       if (!strncmp (path, X_("/cue/aux"), 8)) {
                // set our Aux bus
                if (argc) {
                        if (value) {
@@ -5611,7 +6414,17 @@ OSC::cue_parse (const char *path, const char* types, lo_arg **argv, int argc, lo
                        }
                }
        }
-       else if (!strncmp (path, "/cue/connect", 12)) {
+       else if (!strncmp (path, X_("/cue/connect_aux"), 16)) {
+               // Create new Aux bus
+               string dest = "";
+               if (argc == 1 && types[0] == 's') {
+                       dest = &argv[0]->s;
+                       ret = cue_connect_aux (dest, msg);
+               } else {
+                       PBD::warning << "OSC: connect_aux has wrong number or type of parameters." << endmsg;
+               }
+       }
+       else if (!strncmp (path, X_("/cue/connect"), 12)) {
                // Connect to default Aux bus
                if ((!argc) || argv[0]->f || argv[0]->i) {
                        ret = cue_set (1, msg);
@@ -5619,7 +6432,39 @@ OSC::cue_parse (const char *path, const char* types, lo_arg **argv, int argc, lo
                        ret = 0;
                }
        }
-       else if (!strncmp (path, "/cue/next_aux", 13)) {
+       else if (!strncmp (path, X_("/cue/new_aux"), 12)) {
+               // Create new Aux bus
+               string name = "";
+               string dest_1 = "";
+               string dest_2 = "";
+               if (argc == 3 && types[0] == 's' && types[1] == 's' && types[2] == 's') {
+                       name = &argv[0]->s;
+                       dest_1 = &argv[1]->s;
+                       dest_2 = &argv[2]->s;
+                       ret = cue_new_aux (name, dest_1, dest_2, msg);
+               } else if (argc == 2 && types[0] == 's' && types[1] == 's') {
+                       name = &argv[0]->s;
+                       dest_1 = &argv[1]->s;
+                       dest_2 = dest_1;
+                       ret = cue_new_aux (name, dest_1, dest_2, msg);
+               } else if (argc == 1 && types[0] == 's') {
+                       name = &argv[0]->s;
+                       ret = cue_new_aux (name, dest_1, dest_2, msg);
+               } else {
+                       PBD::warning << "OSC: new_aux has wrong number or type of parameters." << endmsg;
+               }
+       }
+       else if (!strncmp (path, X_("/cue/new_send"), 13)) {
+               // Create new send to aux
+               string rt_name = "";
+               if (argc == 1 && types[0] == 's') {
+                       rt_name = &argv[0]->s;
+                       ret = cue_new_send (rt_name, msg);
+               } else {
+                       PBD::warning << "OSC: new_send has wrong number or type of parameters." << endmsg;
+               }
+       }
+       else if (!strncmp (path, X_("/cue/next_aux"), 13)) {
                // switch to next Aux bus
                if ((!argc) || argv[0]->f || argv[0]->i) {
                        ret = cue_next (msg);
@@ -5627,7 +6472,7 @@ OSC::cue_parse (const char *path, const char* types, lo_arg **argv, int argc, lo
                        ret = 0;
                }
        }
-       else if (!strncmp (path, "/cue/previous_aux", 17)) {
+       else if (!strncmp (path, X_("/cue/previous_aux"), 17)) {
                // switch to previous Aux bus
                if ((!argc) || argv[0]->f || argv[0]->i) {
                        ret = cue_previous (msg);
@@ -5635,24 +6480,24 @@ OSC::cue_parse (const char *path, const char* types, lo_arg **argv, int argc, lo
                        ret = 0;
                }
        }
-       else if (!strncmp (path, "/cue/send/fader/", 16) && strlen (path) > 16) {
+       else if (!strncmp (path, X_("/cue/send/fader/"), 16) && strlen (path) > 16) {
                if (argc == 1) {
                        int id = atoi (&path[16]);
                        ret = cue_send_fader (id, value, msg);
                }
        }
-       else if (!strncmp (path, "/cue/send/enable/", 17) && strlen (path) > 17) {
+       else if (!strncmp (path, X_("/cue/send/enable/"), 17) && strlen (path) > 17) {
                if (argc == 1) {
                        int id = atoi (&path[17]);
                        ret = cue_send_enable (id, value, msg);
                }
        }
-       else if (!strncmp (path, "/cue/fader", 10)) {
+       else if (!strncmp (path, X_("/cue/fader"), 10)) {
                if (argc == 1) {
                        ret = cue_aux_fader (value, msg);
                }
        }
-       else if (!strncmp (path, "/cue/mute", 9)) {
+       else if (!strncmp (path, X_("/cue/mute"), 9)) {
                if (argc == 1) {
                        ret = cue_aux_mute (value, msg);
                }
@@ -5681,7 +6526,10 @@ OSC::_cue_set (uint32_t aux, lo_address addr)
        s->strips = get_sorted_stripables(s->strip_types, s->cue, false, s->custom_strips);
 
        s->nstrips = s->strips.size();
-
+       if (!s->nstrips) {
+               surface_destroy (s);
+               return 0;
+       }
        if (aux < 1) {
                aux = 1;
        } else if (aux > s->nstrips) {
@@ -5692,7 +6540,7 @@ OSC::_cue_set (uint32_t aux, lo_address addr)
        for (uint32_t n = 0; n < s->nstrips; ++n) {
                boost::shared_ptr<Stripable> stp = s->strips[n];
                if (stp) {
-                       text_message (string_compose ("/cue/name/%1", n+1), stp->name(), addr);
+                       text_message (string_compose (X_("/cue/name/%1"), n+1), stp->name(), addr);
                        if (aux == n+1) {
                                // aux must be at least one
 
@@ -5715,6 +6563,95 @@ OSC::_cue_set (uint32_t aux, lo_address addr)
        return ret;
 }
 
+int
+OSC::cue_new_aux (string name, string dest_1, string dest_2, lo_message msg)
+{
+       // create a new bus named name - monitor
+       RouteList list;
+       boost::shared_ptr<Stripable> aux;
+       name = string_compose ("%1 - monitor", name);
+       list = session->new_audio_route (2, 2, 0, 1, name, PresentationInfo::FoldbackBus, (uint32_t) -1);
+       aux = *(list.begin());
+       if (aux) {
+               boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route>(aux);
+               if (dest_1.size()) {
+                       if (atoi( dest_1.c_str())) {
+                               dest_1 = string_compose ("system:playback_%1", dest_1);
+                       }
+                       if (atoi( dest_2.c_str())) {
+                               dest_2 = string_compose ("system:playback_%1", dest_2);
+                       }
+                       PortSet& ports = r->output()->ports ();
+                       PortSet::iterator i = ports.begin();
+                       ++i;
+                       r->output ()->connect (*(ports.begin()), dest_1, this);
+                       r->output ()->connect (*(i), dest_2, this);
+               }
+               cue_set ((uint32_t) -1, msg);
+               session->set_dirty();
+               return 0;
+       }
+       return -1;
+}
+
+int
+OSC::cue_new_send (string rt_name, lo_message msg)
+{
+       OSCSurface *sur = get_surface(get_address (msg), true);
+       if (sur->cue) {
+               boost::shared_ptr<Route> aux = boost::dynamic_pointer_cast<Route> (get_strip (sur->aux, get_address(msg)));
+               if (aux) {
+                       boost::shared_ptr<Route> rt_send = session->route_by_name (rt_name);
+                       if (rt_send && (aux != rt_send)) {
+                               // make sure there isn't one already
+                               bool s_only = true;
+                               if (!rt_send->feeds (aux, &s_only)) {
+                                       // create send
+                                       rt_send->add_foldback_send (aux);
+                                       boost::shared_ptr<Send> snd = rt_send->internal_send_for (aux);
+                                       session->dirty ();
+                                       return 0;
+                               } else {
+                                       PBD::warning << "OSC: new_send - duplicate send, ignored." << endmsg;
+                               }
+                       } else {
+                               PBD::warning << "OSC: new_send - route doesn't exist or is aux." << endmsg;
+                       }
+               } else {
+                       PBD::warning << "OSC: new_send - No Aux to send to." << endmsg;
+               }
+       } else {
+               PBD::warning << "OSC: new_send - monitoring not set, select aux first." << endmsg;
+       }
+       return 1;
+}
+
+int
+OSC::cue_connect_aux (std::string dest, lo_message msg)
+{
+       OSCSurface *sur = get_surface(get_address (msg), true);
+       int ret = 1;
+       if (sur->cue) {
+               boost::shared_ptr<Route> rt = boost::dynamic_pointer_cast<Route> (get_strip (sur->aux, get_address(msg)));
+               if (rt) {
+                       if (dest.size()) {
+                               rt->output()->disconnect (this);
+                               if (atoi( dest.c_str())) {
+                                       dest = string_compose ("system:playback_%1", dest);
+                               }
+                               PortSet& ports = rt->output()->ports ();
+                               rt->output ()->connect (*(ports.begin()), dest, this);
+                               session->set_dirty();
+                               ret = 0;
+                       }
+               }
+       }
+       if (ret) {
+               PBD::warning << "OSC: cannot connect, no Aux bus chosen." << endmsg;
+       }
+       return ret;
+}
+
 int
 OSC::cue_next (lo_message msg)
 {
@@ -5781,7 +6718,7 @@ OSC::cue_aux_fader (float position, lo_message msg)
                        }
                }
        }
-       float_message ("/cue/fader", 0, get_address (msg));
+       float_message (X_("/cue/fader"), 0, get_address (msg));
        return -1;
 }
 
@@ -5802,7 +6739,7 @@ OSC::cue_aux_mute (float state, lo_message msg)
                        }
                }
        }
-       float_message ("/cue/mute", 0, get_address (msg));
+       float_message (X_("/cue/mute"), 0, get_address (msg));
        return -1;
 }
 
@@ -5819,7 +6756,7 @@ OSC::cue_send_fader (uint32_t id, float val, lo_message msg)
                        return 0;
                }
        }
-       float_message (string_compose ("/cue/send/fader/%1", id), 0, get_address (msg));
+       float_message (string_compose (X_("/cue/send/fader/%1"), id), 0, get_address (msg));
        return -1;
 }
 
@@ -5837,7 +6774,7 @@ OSC::cue_send_enable (uint32_t id, float state, lo_message msg)
                }
                return 0;
        }
-       float_message (string_compose ("/cue/send/enable/%1", id), 0, get_address (msg));
+       float_message (string_compose (X_("/cue/send/enable/%1"), id), 0, get_address (msg));
        return -1;
 }
 
@@ -5845,13 +6782,16 @@ OSC::cue_send_enable (uint32_t id, float state, lo_message msg)
 int
 OSC::float_message (string path, float val, lo_address addr)
 {
+       _lo_lock.lock ();
 
        lo_message reply;
        reply = lo_message_new ();
        lo_message_add_float (reply, (float) val);
 
        lo_send_message (addr, path.c_str(), reply);
+       Glib::usleep(1);
        lo_message_free (reply);
+       _lo_lock.unlock ();
 
        return 0;
 }
@@ -5859,6 +6799,7 @@ OSC::float_message (string path, float val, lo_address addr)
 int
 OSC::float_message_with_id (std::string path, uint32_t ssid, float value, bool in_line, lo_address addr)
 {
+       _lo_lock.lock ();
        lo_message msg = lo_message_new ();
        if (in_line) {
                path = string_compose ("%1/%2", path, ssid);
@@ -5868,13 +6809,33 @@ OSC::float_message_with_id (std::string path, uint32_t ssid, float value, bool i
        lo_message_add_float (msg, value);
 
        lo_send_message (addr, path.c_str(), msg);
+       Glib::usleep(1);
        lo_message_free (msg);
+       _lo_lock.unlock ();
+       return 0;
+}
+
+int
+OSC::int_message (string path, int val, lo_address addr)
+{
+       _lo_lock.lock ();
+
+       lo_message reply;
+       reply = lo_message_new ();
+       lo_message_add_int32 (reply, (float) val);
+
+       lo_send_message (addr, path.c_str(), reply);
+       Glib::usleep(1);
+       lo_message_free (reply);
+       _lo_lock.unlock ();
+
        return 0;
 }
 
 int
 OSC::int_message_with_id (std::string path, uint32_t ssid, int value, bool in_line, lo_address addr)
 {
+       _lo_lock.lock ();
        lo_message msg = lo_message_new ();
        if (in_line) {
                path = string_compose ("%1/%2", path, ssid);
@@ -5884,20 +6845,25 @@ OSC::int_message_with_id (std::string path, uint32_t ssid, int value, bool in_li
        lo_message_add_int32 (msg, value);
 
        lo_send_message (addr, path.c_str(), msg);
+       Glib::usleep(1);
        lo_message_free (msg);
+       _lo_lock.unlock ();
        return 0;
 }
 
 int
 OSC::text_message (string path, string val, lo_address addr)
 {
+       _lo_lock.lock ();
 
        lo_message reply;
        reply = lo_message_new ();
        lo_message_add_string (reply, val.c_str());
 
        lo_send_message (addr, path.c_str(), reply);
+       Glib::usleep(1);
        lo_message_free (reply);
+       _lo_lock.unlock ();
 
        return 0;
 }
@@ -5905,6 +6871,7 @@ OSC::text_message (string path, string val, lo_address addr)
 int
 OSC::text_message_with_id (std::string path, uint32_t ssid, std::string val, bool in_line, lo_address addr)
 {
+       _lo_lock.lock ();
        lo_message msg = lo_message_new ();
        if (in_line) {
                path = string_compose ("%1/%2", path, ssid);
@@ -5915,7 +6882,9 @@ OSC::text_message_with_id (std::string path, uint32_t ssid, std::string val, boo
        lo_message_add_string (msg, val.c_str());
 
        lo_send_message (addr, path.c_str(), msg);
+       Glib::usleep(1);
        lo_message_free (msg);
+       _lo_lock.unlock ();
        return 0;
 }
 
@@ -5928,24 +6897,15 @@ OSC::cue_get_sorted_stripables(boost::shared_ptr<Stripable> aux, uint32_t id, lo
        // fetch all stripables
        StripableList stripables;
 
-       session->get_stripables (stripables);
-
-       // Look for stripables that have a send to aux
-       for (StripableList::iterator it = stripables.begin(); it != stripables.end(); ++it) {
-
-               boost::shared_ptr<Stripable> s = *it;
-               // we only want routes
-               boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route> (s);
-               if (r) {
-                       r->processors_changed.connect  (*this, MISSING_INVALIDATOR, boost::bind (&OSC::recalcbanks, this), this);
-                       boost::shared_ptr<Send> snd = r->internal_send_for (boost::dynamic_pointer_cast<Route> (aux));
-                       if (snd) { // test for send to aux
-                               sorted.push_back (s);
-                               s->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::cue_set, this, id, msg), this);
-                       }
+       session->get_stripables (stripables, PresentationInfo::MixerStripables);
+       boost::shared_ptr<Route> aux_rt = boost::dynamic_pointer_cast<Route> (aux);
+       Route::FedBy fed_by = aux_rt->fed_by();
+       for (Route::FedBy::iterator i = fed_by.begin(); i != fed_by.end(); ++i) {
+               if (i->sends_only) {
+                       boost::shared_ptr<Stripable> s (i->r.lock());
+                       sorted.push_back (s);
+                       s->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::cue_set, this, id, msg), this);
                }
-
-
        }
        sort (sorted.begin(), sorted.end(), StripableByPresentationOrder());