make lavacooling functions and related nodes optional