ecballium reworked to work with inner scripts