bucket class with env variables