fix elarch script