adds select_window to agalma