moved url ar inside fxns, exporting cache fxn now