various editor bugfixes + text gen