update samples & API