made it work with node directory structure