added command line args handling