added gen command