use java 7 multiple exceptions instead of several catches, easier to
read