begin abstracting out magic file parsing