clean callbacks/timeouts the smart way