munge data on load