clean the public api