replacing deprecated signature version 1 with signature version 2