fix some possible bugs
TODO
allow to position signature above or below reference
silent provider logout exceptions