updated method of parsing through remote file response