signing API improvements