updated with example with express 4