second pass on cleanup the api explorer initialization