crashes on changing current dir fixed