added skeleton for persistent agent