bugfixes and improvements
WIP: flexible-width