add end marker to config