merged switch and postfix from pp2