added auto generated content to gitignore
Found a potential bug in ResourceHandler