added multi key functionality