started implementing a simple REST middleware (extras)