import to eclipse and fix warnings