lib & stuff