. more practical example for a middleware in namespace