update to support restrain and replay the requests remaning