add resetthenet code