added support for stylus