fixing boolean interpretation for portability