added secret key enviro var to IF DEBUG