working prototype of WWS with dumping added