handles caps errors
added generator bare bones version