upgraded to express4. added logging(fixes #2)