improved dependency analyzer