fixing appId, problem with read_stream