mostly working functions to produce www scores