action main switch changed to self.send
add check on source_type