use SmartHandle.h for file handles