resolve the path up here instead