save fig, file io, basic type and more