Add the support to init moudles

Signed-off-by: Connor Yan <126ium@gmail.com>