separate inputstream for every thread