changed dependency/module checking code