made a few functions in the cgi-bin