make it work with relative path