fixed bug and tested against demo app. updated dependencies