fixed code to work with bspkrsCore 6.1