add synchronous xml fetch method back, refactor stats code, some test css changes