switching files is working somewhat well