fix check extname
add read API
add write API for local
add API write
add s3 support