cleanup .functions