relative was not correctly implemented in tolocalfile