put factory methods back after accidental deletion.