properly convert arg into boolean