add multi-module optimize support