cleanups and expose the http url