improved fastgen
improved fastgen