stub handler, full rewrite