started adding cmd api