add an adapter to handle the reset of keys in API... Fixes #1