debug version for ecosim2.13