added support for piece request configuration