migrate curly analysis from protean