added check to ignore generators in the lib
fixed bug with template extension