upport for "(a|b)?m" added