more flag fixes, error handling for GenericGen