use boolean success flags for file io