downloading & ref extraction