add debug release switch