wip: draft of resolve method