add stream interface to Hash