flag for enabling/disabling profile logger
changed the flag variable name