another attempt at directory changing