loading file correctly