if no chunk patterns are given, chunk id is set to NULL