added metrics script, removed debug statements