added moduleDirectory