'm' converted from an alias into a nice ruby script (with options!)