added functionality to start using cli arguments