moved argv parsing to generate method in order to allow existing shell call to succeed as it does not provide any parameters