some better logging and dest key gen