code, sourcefiles and stuff  from the blog: theblubot.blogspot.com