internalize ready function
Merge pull request #6 from Daniel-Hug/master

internalize ready function