add current_position into yaml file