Fix action command
Improve message handling and connection ability