made wwwflatten more practical