better relative path based resolution