implemented "resolve" (issue #5)