file io for java 6 added