patched Erlang expansion for ms models (+ added warning message on stderr)