improved performance of the resolve function
Merge pull request #4 from gaffa-tape/resolve-upgrade

improved performance of the resolve function