added file openning