added verbose mode to generation