added --keepalive option
escaping commas in variables