changes in the script and protocol

Signed-off-by: Maria <mcptrad@gmail.com>