added module dependency check