better dep check