implemented commandline arguments