refactor to accept in-line, parameter command by default