improved rest configuration