added parsing of cli arguments