added mac support for the addEndingsTags