ported to REScala after the restructuring
small changes to align editor versions