remove deprecation warning
send module as generator output. fix deprecation