changes directories for server