rewrite timebomb using simple timer + lock