few tweaks to format module reg and init.