made command work with the new interfaces