without java 1.7 file reading