refator: use express instead connect on example