wip: refactor data parsing into separate files.