data parsing moved to separate func, tests incoming