added env variable to toggle background processing