prepare fragment parsing