added ability to change crossfade