fixed open file function