using key as string instead of reading a file
thanks to @dlibanori