add standard keywort to set_index
refactor, add apply2trace kwarg