added -m switch