simplified sagarin, working on web stuff