refactor filesize_h, kb interface