public static Stream allocate() { // create
		synchronized (Stream.queue) {
			Stream stream = null;
			if (Stream.pointer > 0) {
				Stream.pointer--;
				stream = (Stream) Stream.queue.popFront();
			}
			if (stream != null) {
				stream.offset = 0;
				return stream;
			}
		}
		Stream stream = new Stream();
		stream.offset = 0;
		stream.payload = new byte[5000];
		return stream;
	}