fixed mising dependency checks and deep circular dependency checking