rewrote app to use express module