to make listcommand ok