web front stuff and cleaning server code