pre refactor segment logic
support DELETE verb