renamed parts to msg and added msg['reply']