cleanup webdev modes to a new file