changed individual file requests to actual site instead of api call