key is passed as text