* read PIN retry counter
* other small tests and changes
still lot of TODOs