debugged card and stack crud routes