directly copy from study_path_test as template, modifying