patched REST API initialization