High energy astrophysics with ground-based gamma ray detectors