improve timespan parsing