fixes required to convert balamp appnote