updating write method
verify
seeing strange links. verify correct parsing