added typdef for genres and used convenience casting methods/funcs from resbuf