add pinentry customization, fix stuff