refactored #execute_generator with separate check for empty and unknown option