some bugfixes an nearly finished complex script editor