fix problem with ipython engine connection