haskell functionality
clean-up rc functionality and added some haskell stuff