server: clean new func