command line function setup