add smex support