working on reorganizing chirpz code