initial reading files