support for 'add' and 'exists' commands