improvements to the .w command