add option to end after a certain marker