add exportmodule and exportall modules functions