corretto datastreamHandler