add first working version, must ber run inside a webserver