update module and add common util function: each