made resource calls path independent