added dependency check