use java8 Paths/Files API