fix json keys
removed duplicate requires
only removed duplicate rest client
fix typo on parsing
handle email with params and cmd_run line