add yamlify, refactor publicDir usage