expose ListenAndServe method for embedding purposes