handle dependencies