update serverpath only if not null