* twitter support in examples
* little refactoring