add multi key support

fixes #2287
Shouldn't we validate all keys?