got lame hook for html rewriting working