add configuration to control the NIO way of copying stream