added support for nstudy filtering