tweak add/revoke-hostname functions to properly update the correct