changed freeze into a promise
Merge pull request #4 from ItsAsbreuk/master

changed freeze into a promise