apply bstack patch