update callback function arguments, readme api