added binary log support