convert M3/M5 to buffered commands