passes root + filename