analyzer code complete. needs further testing