adding my first cgi + various smaller fixed