redundant function
gen_mod can be find in ejabberd's ebin. obviously