use real CLOPEN and CLCLOSE, replaced temp macros