initial parsing files