added update/delete and tests