implemented dependency feature for modules