only calc signature for passed keys
add debugging