modified scripts for HASKELL