added a simpler resolution function (resolve2)