better handling of input WKT (for the web app)