some progress with pinentry stuff, slow though