added streaming post code