this seems to cause a trailing ^M problems