adding pending flag because its a post hook