set scala version and remove compiler warnings