improve to run ipython