added ":port" support to -M input file option