adding write() method and manifest.json feature