binding stream handler