add getfilesize method