Patterns and kickstart generation

Plus fixes along the way