add support for handling pending staging state