add dependency information based on #2239; fix #2236, close #2239