add return type to configureWS