first version of miolib.h