let compile() handle multi-message input