added module module, added module dependency sorting