change directory of class