update the stack apis