add command listing function