fixes from http://forum.routeconverter.com/attachment.php?aid=1176