added mex support for Solin