moving the cgi into the haskell