basic stylus implementation