check for vault before hooking