ported it to eclipse