major revision of beams class, debugging tracker