use resolve instead of join