add load file functionality