added cmd line input option