parser now reads for mode and key