fixes for multicondition studies by Tyler Davis