added cmd line parser