adjusting resource endpoint for environments