add release debug switch