ivaldiation mostly done, just need to deal with multiple newlines right after each other.