implementing the glory that is terminus_session_select_data() in all places