revert some evil pallet changes, added structured haskell mode (shm)