added create and support for local file