add cmd line support