code made to be cgi oriented experimental branch