automatically generate authkey if one is not present