tweaked clock and secret