adding fsopen api for homepage