working on File API 1