made resource calls work again with entities