fixed data request to work on prod and locally