add gen class to run as jar