tweaks to parse date and adding numeric function