moved wrtie functionality out of actproresource and into actproproduct