mpgain: moved tmpfile to cache
mpwithopts: fixed interpreter
Improvements