update build; fix pmd warnings