separate switch step and student file creation