added analyzer code; more to come