setup gravity and deadline