also wrap sys_gui for debugging