add chdir to server