server reimplemented in express js