language middleware adapted for express