meta lib., correctness, fixed func2buf, sgs2c stub