added pending and accepted commands