enable overriding main class with env variable