implemented /api/mark