mainw done, half-way though mainwtab