added dependencies
added code from gist: https://gist.github.com/joshsh/5047451
removed warning
first working version