crafty lib & index