added multiple key encoding formats