bug fixes

- fixed variable case insensitivity
- added express 4.0 compatibility