rm sended_bytes var
mov saving and del pid file in global init section
worckaround info.channel_amount and add free for info.channel