Read/parse files up front

and cleanup reading/parsing files in general