set name to filename of none is specified in yml
beautify code slightly