migrate to jdk 8