add render, add render.loadDirectory, add tests