signing_tools2 copied from signing_tools