got rid of callbacks in streams to comform with node's typical api