fixed some bugs (now fully compliant with libmine 1.0.0)