move signing code to do_sign.ps1 and develop it further