reduce the number of useless session objects
add event on published mod
ensure mod status before publishing