added bs correction functions, with pandas obj support