fixed updates and profiles
fixed connect stream and empty buffer scripts