move validateES6 to after preprocessing; fixes #785