added final version of el wire code