made debug/release configurable