debugged basic contact management