require smex package