working pull and deserialization of portfolios to object