update use of socket and express config