make sure there is a new empty line after endmarkcode