rewrite for userstream