added simple write support