update file api
bug fixed for timer