formatting emac commands