added support for simple machine 2