improved REST configuration implementation