cleanup and server works now
saving structure