Made send and disable static functions in debug class
Modified ENV detection