to control whether to run as fg process