adding electron params, other small changes + bug fix