finished first implementation of complex script editor