fixed issue with different basedirs